diff options
author | Dennis Friis <peavey@placid.dk> | 2008-04-16 22:57:49 +0000 |
---|---|---|
committer | Dennis Friis <peavey@placid.dk> | 2008-04-16 22:57:49 +0000 |
commit | bedd5d237d61126b09d89591068cdfd5069af073 (patch) | |
tree | 7838deb51115341d99abaf49e000f28e5a98c997 /src/gui/sell.cpp | |
parent | 1cc27f15b1f8d74bbc31262f2e7417adf01a63a8 (diff) | |
download | mana-bedd5d237d61126b09d89591068cdfd5069af073.tar.gz mana-bedd5d237d61126b09d89591068cdfd5069af073.tar.bz2 mana-bedd5d237d61126b09d89591068cdfd5069af073.tar.xz mana-bedd5d237d61126b09d89591068cdfd5069af073.zip |
Fix shop list not to scroll to top when selling. Redo of revision 3801 due to changes in guichan 0.8.0.
Diffstat (limited to 'src/gui/sell.cpp')
-rw-r--r-- | src/gui/sell.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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 { |