From 0153e8fa499b7bbdd712339bfb3921ead15a37a2 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 20 Oct 2012 02:23:16 +0300 Subject: Add palette inheritance to label class. --- src/gui/selldialog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui/selldialog.cpp') diff --git a/src/gui/selldialog.cpp b/src/gui/selldialog.cpp index e9889de91..3e8c89d86 100644 --- a/src/gui/selldialog.cpp +++ b/src/gui/selldialog.cpp @@ -86,9 +86,9 @@ void SellDialog::init() mSlider = new Slider(1.0); - mQuantityLabel = new Label(strprintf("%d / %d", mAmountItems, mMaxItems)); + mQuantityLabel = new Label(this, strprintf("%d / %d", mAmountItems, mMaxItems)); mQuantityLabel->setAlignment(gcn::Graphics::CENTER); - mMoneyLabel = new Label(strprintf(_("Price: %s / Total: %s"), + mMoneyLabel = new Label(this, strprintf(_("Price: %s / Total: %s"), "", "")); mIncreaseButton = new Button(this, _("+"), "inc", this); -- cgit v1.2.3-60-g2f50