Explorar o código

wxGUI/gui_core: fix 'Set image size' dialog rendered size on wxPython 4.1.1 (#1890)

Tomas Zigo %!s(int64=3) %!d(string=hai) anos
pai
achega
e03efc238b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      gui/wxpython/gui_core/dialogs.py

+ 1 - 1
gui/wxpython/gui_core/dialogs.py

@@ -2007,7 +2007,7 @@ class ImageSizeDialog(wx.Dialog):
         sizer.Add(btnsizer, proportion=0, flag=wx.EXPAND | wx.ALL, border=5)
 
         self.panel.SetSizer(sizer)
-        sizer.Fit(self.panel)
+        sizer.Fit(self)
         self.Layout()
 
     def GetValues(self):