diff options
author | Dennis Friis <peavey@placid.dk> | 2008-04-17 00:08:28 +0000 |
---|---|---|
committer | Dennis Friis <peavey@placid.dk> | 2008-04-17 00:08:28 +0000 |
commit | a1e74a3175cf8e338688488c9d4361fcc882eb49 (patch) | |
tree | 726bd75dc89f9fdeef1c943be4872da277c64e68 /src/gui/sell.cpp | |
parent | bedd5d237d61126b09d89591068cdfd5069af073 (diff) | |
download | mana-a1e74a3175cf8e338688488c9d4361fcc882eb49.tar.gz mana-a1e74a3175cf8e338688488c9d4361fcc882eb49.tar.bz2 mana-a1e74a3175cf8e338688488c9d4361fcc882eb49.tar.xz mana-a1e74a3175cf8e338688488c9d4361fcc882eb49.zip |
fixes for r4110, have to account for index value and add 1 to get the right scroll position.
Diffstat (limited to 'src/gui/sell.cpp')
-rw-r--r-- | src/gui/sell.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/sell.cpp b/src/gui/sell.cpp index ca91c156..0a590ec6 100644 --- a/src/gui/sell.cpp +++ b/src/gui/sell.cpp @@ -194,7 +194,8 @@ void SellDialog::action(const gcn::ActionEvent &event) mShopItems->getShop()->begin() + selectedItem); gcn::Rectangle scroll; - scroll.y = mShopItemList->getRowHeight() * selectedItem; + scroll.y = mShopItemList->getRowHeight() * (selectedItem + 1); + scroll.height = mShopItemList->getRowHeight(); mShopItemList->showPart(scroll); } else |