Преглед изворни кода

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 година
родитељ
комит
cd85a1f8c2
1 измењених фајлова са 1 додато и 1 уклоњено
  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