Преглед изворни кода

wxGUI: font size Python 3.10 fix (#2036)

Anna Petrasova пре 3 година
родитељ
комит
d064b5d406
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      gui/wxpython/gui_core/goutput.py

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

@@ -621,7 +621,7 @@ class GStc(stc.StyledTextCtrl):
         typesize = UserSettings.Get(group="appearance", key="outputfont", subkey="size")
         typesize = UserSettings.Get(group="appearance", key="outputfont", subkey="size")
         if typesize is None or int(typesize) <= 0:
         if typesize is None or int(typesize) <= 0:
             typesize = 10
             typesize = 10
-        typesize = float(typesize)
+        typesize = int(float(typesize))
 
 
         fontInfo = wx.FontInfo(typesize)
         fontInfo = wx.FontInfo(typesize)
         fontInfo.FaceName(typeface)
         fontInfo.FaceName(typeface)