[GRASS-SVN] r50102 - grass/branches/develbranch_6/gui/wxpython/gui_core

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Jan 9 05:00:44 EST 2012


Author: lucadelu
Date: 2012-01-09 02:00:43 -0800 (Mon, 09 Jan 2012)
New Revision: 50102

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_core/preferences.py
Log:
fix bug on font setting with wx version 2.8.11

Modified: grass/branches/develbranch_6/gui/wxpython/gui_core/preferences.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_core/preferences.py	2012-01-09 10:00:24 UTC (rev 50101)
+++ grass/branches/develbranch_6/gui/wxpython/gui_core/preferences.py	2012-01-09 10:00:43 UTC (rev 50102)
@@ -1320,7 +1320,7 @@
                       
             self.spin = wx.SpinCtrl(parent = panel, id = wx.ID_ANY)
             if self.fontsize:
-                self.spin.SetValue(self.fontsize)
+                self.spin.SetValue(int(self.fontsize))
             self.spin.Bind(wx.EVT_SPINCTRL, self.OnSizeSpin)
             self.spin.Bind(wx.EVT_TEXT, self.OnSizeSpin)
             gridSizer.Add(item = self.spin,



More information about the grass-commit mailing list