[GRASS-SVN] r33865 -
grass/branches/develbranch_6/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Oct 13 20:35:21 EDT 2008
Author: cmbarton
Date: 2008-10-13 20:35:21 -0400 (Mon, 13 Oct 2008)
New Revision: 33865
Modified:
grass/branches/develbranch_6/gui/wxpython/gui_modules/colorrules.py
Log:
Fixed test that excluded color rules written with '%'
Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/colorrules.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/colorrules.py 2008-10-14 00:10:41 UTC (rev 33864)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/colorrules.py 2008-10-14 00:35:21 UTC (rev 33865)
@@ -447,8 +447,10 @@
tc = self.FindWindowById(num)
if self.elem == 'cell':
+
try:
- float(vals)
+ if '%' not in vals:
+ float(vals)
except ValueError:
tc.SetValue('')
self.ruleslines[num-1000]['value'] = ''
More information about the grass-commit
mailing list