[GRASS-SVN] r46092 - grass-addons/gui/wxpython/wx.psmap/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Apr 24 16:20:44 EDT 2011


Author: annakrat
Date: 2011-04-24 13:20:43 -0700 (Sun, 24 Apr 2011)
New Revision: 46092

Modified:
   grass-addons/gui/wxpython/wx.psmap/gui_modules/psmap_dialogs.py
Log:
wx.psmap: map units with capital letters

Modified: grass-addons/gui/wxpython/wx.psmap/gui_modules/psmap_dialogs.py
===================================================================
--- grass-addons/gui/wxpython/wx.psmap/gui_modules/psmap_dialogs.py	2011-04-24 19:53:58 UTC (rev 46091)
+++ grass-addons/gui/wxpython/wx.psmap/gui_modules/psmap_dialogs.py	2011-04-24 20:20:43 UTC (rev 46092)
@@ -4548,7 +4548,7 @@
         
         self._layout(self.panel)
         
-        self.mapUnit = projInfo()['units']
+        self.mapUnit = projInfo()['units'].lower()
         if projInfo()['proj'] == 'xy':
             self.mapUnit = 'meters'
         if self.mapUnit not in self.unitConv.getAllUnits():



More information about the grass-commit mailing list