summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-12-25 17:35:21 +0300
committerAndrei Karas <akaras@inbox.ru>2012-12-25 17:35:21 +0300
commit036b55e414e6f25c1187753c3de6ac561c022996 (patch)
tree30840e0269842e501b67dcbe5f79a38cf52f0c71 /src
parente73ef677cae51b6e775da1ad6ac3ece723de1cb4 (diff)
downloadplus-036b55e414e6f25c1187753c3de6ac561c022996.tar.gz
plus-036b55e414e6f25c1187753c3de6ac561c022996.tar.bz2
plus-036b55e414e6f25c1187753c3de6ac561c022996.tar.xz
plus-036b55e414e6f25c1187753c3de6ac561c022996.zip
Fix shoplistbox popup area.
Diffstat (limited to 'src')
-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 7d23189d1..1dd58532e 100644
--- a/src/gui/widgets/shoplistbox.cpp
+++ b/src/gui/widgets/shoplistbox.cpp
@@ -188,7 +188,7 @@ void ShopListBox::mouseMoved(gcn::MouseEvent &event)
return;
}
- const int index = (event.getY() + mPadding) / mRowHeight;
+ const int index = (event.getY() - mPadding) / mRowHeight;
if (index < 0 || index >= mShopItems->getNumberOfElements())
{