Use integer division to find the item number.

This commit is contained in:
Robin Dunn
2017-09-12 16:48:40 -07:00
parent 3d29208ca2
commit 5544bbfee8

View File

@@ -10147,7 +10147,7 @@ class UltimateListMainWindow(wx.ScrolledWindow):
if self.InReportView():
if not self.HasAGWFlag(ULC_HAS_VARIABLE_ROW_HEIGHT):
current = y/self.GetLineHeight()
current = y // self.GetLineHeight()
if current < count:
newItem, flags = self.HitTestLine(current, x, y)
if flags: