From 5544bbfee842a2cd8376d6f4a15bc35acdc1121a Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Tue, 12 Sep 2017 16:48:40 -0700 Subject: [PATCH] Use integer division to find the item number. --- wx/lib/agw/ultimatelistctrl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wx/lib/agw/ultimatelistctrl.py b/wx/lib/agw/ultimatelistctrl.py index 410d071e..fd6391ee 100644 --- a/wx/lib/agw/ultimatelistctrl.py +++ b/wx/lib/agw/ultimatelistctrl.py @@ -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: