Fix type casts for graphs

See #2391 for more info
This commit is contained in:
DarkPhoenix
2022-04-20 15:23:03 +04:00
parent a98e898bd8
commit 6664b5620a
2 changed files with 11 additions and 9 deletions

View File

@@ -114,7 +114,7 @@ class GraphFrame(AuxiliaryFrame):
newW = max(curW, bestW)
newH = max(curH, bestH)
if newW > curW or newH > curH:
newSize = wx.Size(newW, newH)
newSize = wx.Size(round(newW), round(newH))
self.SetSize(newSize)
self.SetMinSize(newSize)