summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Friis <peavey@placid.dk>2008-04-16 22:57:49 +0000
committerDennis Friis <peavey@placid.dk>2008-04-16 22:57:49 +0000
commitbedd5d237d61126b09d89591068cdfd5069af073 (patch)
tree7838deb51115341d99abaf49e000f28e5a98c997
parent1cc27f15b1f8d74bbc31262f2e7417adf01a63a8 (diff)
downloadmana-client-bedd5d237d61126b09d89591068cdfd5069af073.tar.gz
mana-client-bedd5d237d61126b09d89591068cdfd5069af073.tar.bz2
mana-client-bedd5d237d61126b09d89591068cdfd5069af073.tar.xz
mana-client-bedd5d237d61126b09d89591068cdfd5069af073.zip
Fix shop list not to scroll to top when selling. Redo of revision 3801 due to changes in guichan 0.8.0.
-rw-r--r--ChangeLog5
-rw-r--r--src/gui/sell.cpp4
2 files changed, 9 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index cb28b5b2..70137b22 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-04-17 Dennis Friis <peavey@placid.dk>
+
+ * src/gui/sell.cpp: Fix shop list not to scroll to top when selling.
+ Redo of revision 3801 due to changes in guichan 0.8.0.
+
2008-04-16 Dennis Friis <peavey@placid.dk>
* src/gui/browserbox.cpp: Fix a basic_string::at sometimes being out
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
{