From 036b55e414e6f25c1187753c3de6ac561c022996 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 25 Dec 2012 17:35:21 +0300 Subject: Fix shoplistbox popup area. --- src/gui/widgets/shoplistbox.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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()) { -- cgit v1.2.3-70-g09d2