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)