summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gui/widgets/extendedlistbox.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/widgets/extendedlistbox.cpp b/src/gui/widgets/extendedlistbox.cpp
index 01967712c..271160726 100644
--- a/src/gui/widgets/extendedlistbox.cpp
+++ b/src/gui/widgets/extendedlistbox.cpp
@@ -240,7 +240,7 @@ int ExtendedListBox::getSelectionByMouse(const int y) const
for (size_t f = 0; f < itemsSz; f ++)
{
const ExtendedListBoxItem &item = mListItems[f];
- const int y2 = item.y;
+ const int y2 = item.y + mPadding;
if (y2 <= y && y2 + height > y)
return item.row;
}
@@ -249,7 +249,7 @@ int ExtendedListBox::getSelectionByMouse(const int y) const
for (size_t f = 0; f < selSz; f ++)
{
const ExtendedListBoxItem &item = mSelectedItems[f];
- const int y2 = item.y;
+ const int y2 = item.y + mPadding;
if (y2 <= y && y2 + height > y)
return item.row;
}