From a1e74a3175cf8e338688488c9d4361fcc882eb49 Mon Sep 17 00:00:00 2001 From: Dennis Friis Date: Thu, 17 Apr 2008 00:08:28 +0000 Subject: fixes for r4110, have to account for index value and add 1 to get the right scroll position. --- src/gui/sell.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3-60-g2f50