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:
topic2k
2020-05-01 11:28:19 +02:00
parent 20a2e9a4e7
commit 7dfccd5b37

View File

@@ -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):