From bedd5d237d61126b09d89591068cdfd5069af073 Mon Sep 17 00:00:00 2001 From: Dennis Friis Date: Wed, 16 Apr 2008 22:57:49 +0000 Subject: Fix shop list not to scroll to top when selling. Redo of revision 3801 due to changes in guichan 0.8.0. --- src/gui/sell.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/gui') diff --git a/src/gui/sell.cpp b/src/gui/sell.cpp index ce971cb0..ca91c156 100644 --- a/src/gui/sell.cpp +++ b/src/gui/sell.cpp @@ -192,6 +192,10 @@ void SellDialog::action(const gcn::ActionEvent &event) mShopItemList->setSelected(-1); mShopItems->getShop()->erase( mShopItems->getShop()->begin() + selectedItem); + + gcn::Rectangle scroll; + scroll.y = mShopItemList->getRowHeight() * selectedItem; + mShopItemList->showPart(scroll); } else { -- cgit v1.2.3-70-g09d2