[GRASS-SVN] r33869 - grass/trunk/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Oct 14 08:18:42 EDT 2008


Author: martinl
Date: 2008-10-14 08:18:41 -0400 (Tue, 14 Oct 2008)
New Revision: 33869

Modified:
   grass/trunk/gui/wxpython/gui_modules/colorrules.py
Log:
cmbarton: Fixed test that excluded color rules written with '%'
(merge from devbr6, r33865)


Modified: grass/trunk/gui/wxpython/gui_modules/colorrules.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/colorrules.py	2008-10-14 10:12:37 UTC (rev 33868)
+++ grass/trunk/gui/wxpython/gui_modules/colorrules.py	2008-10-14 12:18:41 UTC (rev 33869)
@@ -448,8 +448,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