Browse Source

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á 10 years ago
parent
commit
cd85a1f8c2
1 changed files with 1 additions and 1 deletions
  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