[GRASS-SVN] r70404 - grass/trunk/gui/wxpython/vdigit
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Jan 21 10:29:09 PST 2017
Author: martinl
Date: 2017-01-21 10:29:09 -0800 (Sat, 21 Jan 2017)
New Revision: 70404
Modified:
grass/trunk/gui/wxpython/vdigit/wxdisplay.py
Log:
wxGUI/vdigit: fix GetThreshold() (see #2848)
Modified: grass/trunk/gui/wxpython/vdigit/wxdisplay.py
===================================================================
--- grass/trunk/gui/wxpython/vdigit/wxdisplay.py 2017-01-21 18:16:01 UTC (rev 70403)
+++ grass/trunk/gui/wxpython/vdigit/wxdisplay.py 2017-01-21 18:29:09 UTC (rev 70404)
@@ -1107,12 +1107,12 @@
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
More information about the grass-commit
mailing list