Explorar o código

wxGUI/profile: fix case when map has defined units

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@64284 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová %!s(int64=10) %!d(string=hai) anos
pai
achega
cd85a1f8c2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      gui/wxpython/wxplot/profile.py

+ 1 - 1
gui/wxpython/wxplot/profile.py

@@ -216,7 +216,7 @@ class ProfileFrame(BasePlotFrame):
 
                 # update ylabel to match units if they exist           
                 if self.raster[r]['units'] != '':
-                    self.ylabel += '%s (%d),' % (r['units'], i)
+                    self.ylabel += '%s (%d),' % (self.raster[r]['units'], i)
                 i += 1
 
                 # update title