From 2971a97dc72412f14eaf78abeb75a5d1d8a6563a Mon Sep 17 00:00:00 2001 From: HomeWorld Date: Mon, 19 Mar 2012 13:57:09 +0200 Subject: [PATCH] Small fix in display->HitTestSubitem (proper calc. of offset when list is scrolled) --- gui/display.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/display.py b/gui/display.py index a85c92ad4..4f65da4f4 100644 --- a/gui/display.py +++ b/gui/display.py @@ -97,7 +97,7 @@ class Display(wx.ListCtrl): # Find which subitem is hit right = 0 - scrolledX = self.GetScrollPos(wx.HORIZONTAL) + pt.x + scrolledX = self.GetScrollPos(wx.HORIZONTAL) * wx.SystemSettings.GetMetric(wx.SYS_HSCROLL_Y) + pt.x for i in range(self.GetColumnCount()): left = right right += self.GetColumnWidth(i)