[GRASS-SVN] r39847 -
grass/branches/develbranch_6/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Nov 28 14:47:14 EST 2009
Author: cmbarton
Date: 2009-11-28 14:47:13 -0500 (Sat, 28 Nov 2009)
New Revision: 39847
Modified:
grass/branches/develbranch_6/gui/wxpython/gui_modules/goutput.py
grass/branches/develbranch_6/gui/wxpython/gui_modules/preferences.py
Log:
Bug fix for recent change to preferences dialog
Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/goutput.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/goutput.py 2009-11-28 19:03:32 UTC (rev 39846)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/goutput.py 2009-11-28 19:47:13 UTC (rev 39847)
@@ -799,7 +799,7 @@
self.typeface = settings.Get(group='display', key='outputfont', subkey='type')
if self.typeface == "": self.typeface = "Courier New"
- self.typesize = settings.Get(group='display', key='outputfont', subkey='size')
+ self.typesize = float(settings.Get(group='display', key='outputfont', subkey='size'))
if self.typesize == None or self.typesize <= 0: self.typesize = 10
self.StyleDefault = 0
Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/preferences.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/preferences.py 2009-11-28 19:03:32 UTC (rev 39846)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/preferences.py 2009-11-28 19:47:13 UTC (rev 39847)
@@ -1788,7 +1788,7 @@
type = self.settings.Get(group='display', key='outputfont', subkey='type')
- size = self.settings.Get(group='display', key='outputfont', subkey='size')
+ size = float(self.settings.Get(group='display', key='outputfont', subkey='size'))
if size == None or size == 0: size = 9
data = wx.FontData()
@@ -1803,7 +1803,7 @@
self.settings.Set(group='display', value=font.GetFaceName(),
key='outputfont', subkey='type')
- self.settings.Set(group='display', value=font.GetPointSize(),
+ self.settings.Set(group='display', value=str(font.GetPointSize()),
key='outputfont', subkey='size')
dlg.Destroy()
More information about the grass-commit
mailing list