Skip to content

Commit

Permalink
Merge pull request #2600 from infinity77/patch-4
Browse files Browse the repository at this point in the history
Possible fix for #2345
  • Loading branch information
swt2c authored Sep 5, 2024
2 parents 14b6e5d + 6580e5f commit 5946f00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wx/lib/agw/scrolledthumbnail.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5946f00

Please sign in to comment.