Explorar o código

wxGUI/wxplot: fix variable name (ret0/ret1)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@49438 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa %!s(int64=13) %!d(string=hai) anos
pai
achega
f9be16e6b2
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      gui/wxpython/wxplot/base.py

+ 2 - 2
gui/wxpython/wxplot/base.py

@@ -217,12 +217,12 @@ class BasePlotFrame(wx.Frame):
             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']