From 6580e5fdc2cdad29c7a26a138b79737c77566c5f Mon Sep 17 00:00:00 2001 From: Andrea Gavana Date: Thu, 5 Sep 2024 14:48:30 +0200 Subject: [PATCH] Possible fix for #2345 Possible fix for #2345 --- wx/lib/agw/scrolledthumbnail.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wx/lib/agw/scrolledthumbnail.py b/wx/lib/agw/scrolledthumbnail.py index bfb1dd139..437e6c554 100644 --- a/wx/lib/agw/scrolledthumbnail.py +++ b/wx/lib/agw/scrolledthumbnail.py @@ -1534,7 +1534,7 @@ def ScrollToSelected(self): # scroll view xu, yu = self.GetScrollPixelsPerUnit() - sy = sy/yu + (sy%yu and [1] or [0])[0] # convert sy to scroll units + sy = sy//yu + (sy%yu and [1] or [0])[0] # convert sy to scroll units x, y = self.GetViewStart() self.Scroll(x,sy)