[GRASS-SVN] r39858 - grass/branches/develbranch_6/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Nov 30 01:11:39 EST 2009


Author: cmbarton
Date: 2009-11-30 01:11:39 -0500 (Mon, 30 Nov 2009)
New Revision: 39858

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/preferences.py
Log:
Bug fix for users who start grass for the first time without .grasswx6 file

Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/preferences.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/preferences.py	2009-11-30 06:06:40 UTC (rev 39857)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/preferences.py	2009-11-30 06:11:39 UTC (rev 39858)
@@ -1788,8 +1788,9 @@
 
         type = self.settings.Get(group='display', key='outputfont', subkey='type')   
                            
-        size = float(self.settings.Get(group='display', key='outputfont', subkey='size'))
-        if size == None or size == 0: size = 9
+        size = self.settings.Get(group='display', key='outputfont', subkey='size')
+        if size == None or size == 0: size = 10
+        size = float(size)
         
         data = wx.FontData()
         data.EnableEffects(True)
@@ -1803,7 +1804,7 @@
 
             self.settings.Set(group='display', value=font.GetFaceName(),
                                   key='outputfont', subkey='type')
-            self.settings.Set(group='display', value=str(font.GetPointSize()),
+            self.settings.Set(group='display', value=font.GetPointSize(),
                                   key='outputfont', subkey='size')
                 
         dlg.Destroy()



More information about the grass-commit mailing list