From 17712d8b7d1f515cc1a8d440a9470621ddc79071 Mon Sep 17 00:00:00 2001 From: DarkPhoenix Date: Wed, 20 Apr 2022 15:58:46 +0400 Subject: [PATCH] More fixes for silent coercion, which is no more --- gui/builtinShipBrowser/pfListPane.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gui/builtinShipBrowser/pfListPane.py b/gui/builtinShipBrowser/pfListPane.py index ecb8edb1c..a6bca93c6 100644 --- a/gui/builtinShipBrowser/pfListPane.py +++ b/gui/builtinShipBrowser/pfListPane.py @@ -57,7 +57,7 @@ class PFListPane(wx.ScrolledWindow): posy = self.GetScrollPos(wx.VERTICAL) posy -= self.itemsHeight - self.Scroll(0, posy) + self.Scroll(0, round(posy)) event.Skip() @@ -65,7 +65,7 @@ class PFListPane(wx.ScrolledWindow): posy = self.GetScrollPos(wx.VERTICAL) posy += self.itemsHeight - self.Scroll(0, posy) + self.Scroll(0, round(posy)) event.Skip() @@ -109,7 +109,7 @@ class PFListPane(wx.ScrolledWindow): # if we need to adjust if new_vs_x != -1 or new_vs_y != -1: - self.Scroll(new_vs_x, new_vs_y) + self.Scroll(round(new_vs_x), round(new_vs_y)) def AddWidget(self, widget): widget.Reparent(self)