mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-03-18 22:50:07 +01:00
fix calculation of line width
If one or more columns are hidden, HitTest would falsely report a hit when clicked right beside the last visible column within the range of the hidden column(s).
This commit is contained in:
@@ -6696,7 +6696,8 @@ class UltimateListMainWindow(wx.ScrolledWindow):
|
||||
image_width = 0
|
||||
|
||||
for c in range(col):
|
||||
image_x += self.GetColumnWidth(c)
|
||||
if self.IsColumnShown(c):
|
||||
image_x += self.GetColumnWidth(c)
|
||||
|
||||
item = self.GetLine(line)
|
||||
if item.HasImage(col):
|
||||
|
||||
Reference in New Issue
Block a user