diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-12-25 17:35:21 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-12-25 17:35:21 +0300 |
commit | 036b55e414e6f25c1187753c3de6ac561c022996 (patch) | |
tree | 30840e0269842e501b67dcbe5f79a38cf52f0c71 /src/gui/widgets | |
parent | e73ef677cae51b6e775da1ad6ac3ece723de1cb4 (diff) | |
download | plus-036b55e414e6f25c1187753c3de6ac561c022996.tar.gz plus-036b55e414e6f25c1187753c3de6ac561c022996.tar.bz2 plus-036b55e414e6f25c1187753c3de6ac561c022996.tar.xz plus-036b55e414e6f25c1187753c3de6ac561c022996.zip |
Fix shoplistbox popup area.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r-- | src/gui/widgets/shoplistbox.cpp | 2 |
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()) { |