[GRASS-SVN] r36689 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Apr 11 21:01:55 EDT 2009
Author: hcho
Date: 2009-04-11 21:01:54 -0400 (Sat, 11 Apr 2009)
New Revision: 36689
Modified:
grass/trunk/gui/wxpython/gui_modules/preferences.py
Log:
Parse font names correctly (e.g., "Luxi Mono:Regular" is not a color value)
Modified: grass/trunk/gui/wxpython/gui_modules/preferences.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/preferences.py 2009-04-11 20:41:50 UTC (rev 36688)
+++ grass/trunk/gui/wxpython/gui_modules/preferences.py 2009-04-12 01:01:54 UTC (rev 36689)
@@ -696,7 +696,10 @@
elif value == 'None':
value = None
elif ':' in value: # -> color
- value = tuple(map(int, value.split(':')))
+ try:
+ value = tuple(map(int, value.split(':')))
+ except ValueError: # -> string
+ pass
else:
try:
value = int(value)
More information about the grass-commit
mailing list