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

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Jan 22 18:45:38 PST 2015


Author: annakrat
Date: 2015-01-22 18:45:38 -0800 (Thu, 22 Jan 2015)
New Revision: 64284

Modified:
   grass/trunk/gui/wxpython/wxplot/profile.py
Log:
wxGUI/profile: fix case when map has defined units

Modified: grass/trunk/gui/wxpython/wxplot/profile.py
===================================================================
--- grass/trunk/gui/wxpython/wxplot/profile.py	2015-01-22 15:54:50 UTC (rev 64283)
+++ grass/trunk/gui/wxpython/wxplot/profile.py	2015-01-23 02:45:38 UTC (rev 64284)
@@ -216,7 +216,7 @@
 
                 # 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



More information about the grass-commit mailing list