summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-10-21 17:01:21 +0300
committerAndrei Karas <akaras@inbox.ru>2012-10-21 17:01:21 +0300
commit1e5ef5ad665721a4c7824a1c8c0fb48ed7e4dc51 (patch)
tree44a7200df887851baca5218c20045d203515a497
parentaaddd74d15f8701283623b45a63262084055c291 (diff)
downloadmanaverse-1e5ef5ad665721a4c7824a1c8c0fb48ed7e4dc51.tar.gz
manaverse-1e5ef5ad665721a4c7824a1c8c0fb48ed7e4dc51.tar.bz2
manaverse-1e5ef5ad665721a4c7824a1c8c0fb48ed7e4dc51.tar.xz
manaverse-1e5ef5ad665721a4c7824a1c8c0fb48ed7e4dc51.zip
Fix item selection in shoplistbox class.
-rw-r--r--src/gui/widgets/shoplistbox.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/widgets/shoplistbox.cpp b/src/gui/widgets/shoplistbox.cpp
index b9d7e18f4..0134a64c9 100644
--- a/src/gui/widgets/shoplistbox.cpp
+++ b/src/gui/widgets/shoplistbox.cpp
@@ -180,7 +180,7 @@ void ShopListBox::mouseMoved(gcn::MouseEvent &event)
return;
}
- const int index = event.getY() / mRowHeight;
+ const int index = (event.getY() + mPadding) / mRowHeight;
if (index < 0 || index >= mShopItems->getNumberOfElements())
{