summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Friis <peavey@placid.dk>2008-04-17 00:08:28 +0000
committerDennis Friis <peavey@placid.dk>2008-04-17 00:08:28 +0000
commita1e74a3175cf8e338688488c9d4361fcc882eb49 (patch)
tree726bd75dc89f9fdeef1c943be4872da277c64e68
parentbedd5d237d61126b09d89591068cdfd5069af073 (diff)
downloadmana-client-a1e74a3175cf8e338688488c9d4361fcc882eb49.tar.gz
mana-client-a1e74a3175cf8e338688488c9d4361fcc882eb49.tar.bz2
mana-client-a1e74a3175cf8e338688488c9d4361fcc882eb49.tar.xz
mana-client-a1e74a3175cf8e338688488c9d4361fcc882eb49.zip
fixes for r4110, have to account for index value and add 1 to get the right scroll position.
-rw-r--r--src/gui/sell.cpp3
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