[GRASS-SVN] r39848 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Nov 28 14:49:52 EST 2009
Author: cmbarton
Date: 2009-11-28 14:49:52 -0500 (Sat, 28 Nov 2009)
New Revision: 39848
Modified:
grass/trunk/gui/wxpython/gui_modules/goutput.py
grass/trunk/gui/wxpython/gui_modules/preferences.py
Log:
Bug fix for recent enhancement of preferences dialog. Backport from develbranch_6 r39847.
Modified: grass/trunk/gui/wxpython/gui_modules/goutput.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/goutput.py 2009-11-28 19:47:13 UTC (rev 39847)
+++ grass/trunk/gui/wxpython/gui_modules/goutput.py 2009-11-28 19:49:52 UTC (rev 39848)
@@ -793,7 +793,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/trunk/gui/wxpython/gui_modules/preferences.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/preferences.py 2009-11-28 19:47:13 UTC (rev 39847)
+++ grass/trunk/gui/wxpython/gui_modules/preferences.py 2009-11-28 19:49:52 UTC (rev 39848)
@@ -1778,7 +1778,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()
@@ -1793,7 +1793,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