summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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