Browse Source

wxGUI/vdigit: fix GetThreshold() (see https://trac.osgeo.org/grass/ticket/2848)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@70404 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 8 years ago
parent
commit
b872570b6f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      gui/wxpython/vdigit/wxdisplay.py

+ 2 - 2
gui/wxpython/vdigit/wxdisplay.py

@@ -1107,12 +1107,12 @@ class DisplayDriver:
             value = UserSettings.Get(group='vdigit', key=type, subkey='value')
 
         if units is None:
-            units = UserSettings.Get(group='vdigit', key=type, subkey='unit')
+            units = UserSettings.Get(group='vdigit', key=type, subkey='units')
 
         if value < 0:
             value = (self.region['nsres'] + self.region['ewres']) / 2.0
 
-        if units == 0:
+        if units == 'screen pixels':
             # pixel -> cell
             res = max(self.region['nsres'], self.region['ewres'])
             return value * res