From aa9946caa769a809db46734924ad7074fc641762 Mon Sep 17 00:00:00 2001 From: Lukas Frank Date: Tue, 14 Jun 2022 04:53:36 +0200 Subject: [PATCH] DisplayCAL/wxfixes.py: convert float to int for calling wxPython's Scroll(self, int, int) correctly --- DisplayCAL/wxfixes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DisplayCAL/wxfixes.py b/DisplayCAL/wxfixes.py index 45a34615..ea3f67ac 100644 --- a/DisplayCAL/wxfixes.py +++ b/DisplayCAL/wxfixes.py @@ -1146,7 +1146,7 @@ def ScrollChildIntoView(self, child): # if we need to adjust if new_vs_x != -1 or new_vs_y != -1: # print "%s: (%s, %s)" % (self.GetName(), new_vs_x, new_vs_y) - self.Scroll(new_vs_x, new_vs_y) + self.Scroll(int(new_vs_x), int(new_vs_y)) wx.ScrolledWindow = ScrolledWindow