From 54a54eb5317650fc3306d200517bcc48bb7f1d9c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 30 Nov 2013 22:59:30 +0300 Subject: fix styled drawing after update. --- src/gui/windows/itemamountwindow.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/gui/windows/itemamountwindow.cpp') diff --git a/src/gui/windows/itemamountwindow.cpp b/src/gui/windows/itemamountwindow.cpp index 9800379b1..5e613cc62 100644 --- a/src/gui/windows/itemamountwindow.cpp +++ b/src/gui/windows/itemamountwindow.cpp @@ -391,7 +391,7 @@ void ItemAmountWindow::action(const gcn::ActionEvent &event) else if (eventId == "slide") amount = static_cast(mItemAmountSlide->getValue()); mItemAmountTextField->setValue(amount); - mItemAmountSlide->setValue(amount); + mItemAmountSlide->setValue2(amount); if (mItemPriceTextField && mItemPriceSlide) { @@ -407,14 +407,14 @@ void ItemAmountWindow::action(const gcn::ActionEvent &event) mPrice++; price = static_cast(pow(10.0, mPrice)); mItemPriceTextField->setValue(price); - mItemPriceSlide->setValue(price); + mItemPriceSlide->setValue2(price); } else if (eventId == "decPrice") { mPrice--; price = static_cast(pow(10.0, mPrice)); mItemPriceTextField->setValue(price); - mItemPriceSlide->setValue(price); + mItemPriceSlide->setValue2(price); } else if (eventId == "slidePrice") { @@ -424,7 +424,7 @@ void ItemAmountWindow::action(const gcn::ActionEvent &event) else mPrice = 0; mItemPriceTextField->setValue(price); - mItemPriceSlide->setValue(price); + mItemPriceSlide->setValue2(price); } } } @@ -437,7 +437,7 @@ void ItemAmountWindow::close() void ItemAmountWindow::keyReleased(gcn::KeyEvent &keyEvent A_UNUSED) { - mItemAmountSlide->setValue(mItemAmountTextField->getValue()); + mItemAmountSlide->setValue2(mItemAmountTextField->getValue()); } void ItemAmountWindow::showWindow(const Usage usage, Window *const parent, -- cgit v1.2.3-60-g2f50