[GRASS-SVN] r33977 -
grass/branches/develbranch_6/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Oct 22 10:16:33 EDT 2008
Author: martinl
Date: 2008-10-22 10:16:32 -0400 (Wed, 22 Oct 2008)
New Revision: 33977
Modified:
grass/branches/develbranch_6/gui/wxpython/gui_modules/colorrules.py
Log:
wxGUI/colortable: allow percent value
Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/colorrules.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/colorrules.py 2008-10-22 13:40:54 UTC (rev 33976)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/colorrules.py 2008-10-22 14:16:32 UTC (rev 33977)
@@ -451,9 +451,10 @@
if self.elem == 'cell':
try:
- if vals != '-':
+ if vals != '-' and \
+ vals[-1] != '%':
float(vals)
- except ValueError:
+ except (IndexError, ValueError):
tc.SetValue('')
self.ruleslines[num-1000]['value'] = ''
return
More information about the grass-commit
mailing list