[GRASS-SVN] r69578 - grass/trunk/gui/wxpython/vdigit

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Sep 26 07:05:27 PDT 2016


Author: annakrat
Date: 2016-09-26 07:05:26 -0700 (Mon, 26 Sep 2016)
New Revision: 69578

Modified:
   grass/trunk/gui/wxpython/vdigit/wxdisplay.py
Log:
GUI/vdigit: fix snapping units, see #2848

Modified: grass/trunk/gui/wxpython/vdigit/wxdisplay.py
===================================================================
--- grass/trunk/gui/wxpython/vdigit/wxdisplay.py	2016-09-26 12:14:47 UTC (rev 69577)
+++ grass/trunk/gui/wxpython/vdigit/wxdisplay.py	2016-09-26 14:05:26 UTC (rev 69578)
@@ -1112,7 +1112,7 @@
         if value < 0:
             value = (self.region['nsres'] + self.region['ewres']) / 2.0
 
-        if units == "screen pixels":
+        if units == _("screen pixels"):
             # pixel -> cell
             res = max(self.region['nsres'], self.region['ewres'])
             return value * res



More information about the grass-commit mailing list