From 54981636c5679e5fb4247cb5b094a7ae29dc545f Mon Sep 17 00:00:00 2001 From: richardt Date: Thu, 29 Jun 2023 14:39:47 +0100 Subject: [PATCH] Fix arg TypeError when moving to item with variable row height not set --- wx/lib/agw/ultimatelistctrl.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wx/lib/agw/ultimatelistctrl.py b/wx/lib/agw/ultimatelistctrl.py index 9f82449e..866ed04d 100644 --- a/wx/lib/agw/ultimatelistctrl.py +++ b/wx/lib/agw/ultimatelistctrl.py @@ -7914,9 +7914,9 @@ class UltimateListMainWindow(wx.ScrolledWindow): if not self.HasAGWFlag(ULC_HAS_VARIABLE_ROW_HEIGHT): if rect.y < view_y: - self.Scroll(-1, rect.y/hLine) + self.Scroll(-1, rect.y//hLine) if rect.y+rect.height+5 > view_y+client_h: - self.Scroll(-1, (rect.y+rect.height-client_h+hLine)/hLine) + self.Scroll(-1, (rect.y+rect.height-client_h+hLine)//hLine) if wx.Platform == "__WXMAC__": # At least on Mac the visible lines value will get reset inside of