From 7168de5a9f2f0175c3fb37ec8ad3c94e8afe5b78 Mon Sep 17 00:00:00 2001 From: Andrea Gavana Date: Thu, 5 Sep 2024 14:29:09 +0200 Subject: [PATCH] Should fix #2410 This should fix #2410 - Widgets placed in the UltimateListControl are drawn in the wrong location --- 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 289d185ad..e12da76ff 100644 --- a/wx/lib/agw/ultimatelistctrl.py +++ b/wx/lib/agw/ultimatelistctrl.py @@ -4573,7 +4573,7 @@ def DrawInReportMode(self, dc, line, rect, rectHL, highlighted, current, enabled xa, ya = self._owner.CalcScrolledPosition((0, rect.y)) wndx += xa if rect.height > ySize and not item._expandWin: - ya += (rect.height - ySize)/2 + ya += (rect.height - ySize)//2 itemRect = wx.Rect(xOld-2*HEADER_OFFSET_X, rect.y, width-xSize-HEADER_OFFSET_X, rect.height) if overflow: