[GRASS-SVN] r49438 - grass/trunk/gui/wxpython/wxplot

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Nov 30 14:38:14 EST 2011


Author: martinl
Date: 2011-11-30 11:38:13 -0800 (Wed, 30 Nov 2011)
New Revision: 49438

Modified:
   grass/trunk/gui/wxpython/wxplot/base.py
Log:
wxGUI/wxplot: fix variable name (ret0/ret1)


Modified: grass/trunk/gui/wxpython/wxplot/base.py
===================================================================
--- grass/trunk/gui/wxpython/wxplot/base.py	2011-11-30 18:21:36 UTC (rev 49437)
+++ grass/trunk/gui/wxpython/wxplot/base.py	2011-11-30 19:38:13 UTC (rev 49438)
@@ -217,12 +217,12 @@
             rdict[rpair][0] = {}
             rdict[rpair][1] = {}
 
-            if ret0['units'] == '(none)' or ret['units'] == '' or ret['units'] == None:
+            if ret0['units'] in ('(none)', '"none"', '', None):
                 rdict[rpair][0]['units'] = ''
             else:
                 self.raster[rpair][0]['units'] = ret0['units']
 
-            if ret1['units'] == '(none)' or ret['units'] == '' or ret['units'] == None:
+            if ret1['units'] in ('(none)', '"none"', '', None):
                 rdict[rpair][1]['units'] = ''
             else:
                 self.raster[rpair][1]['units'] = ret1['units']



More information about the grass-commit mailing list