[GRASS-SVN] r30534 - grass/trunk/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Mar 12 05:38:33 EDT 2008


Author: martinl
Date: 2008-03-12 05:38:33 -0400 (Wed, 12 Mar 2008)
New Revision: 30534

Modified:
   grass/trunk/gui/wxpython/gui_modules/digit.py
Log:
wxGUI (vdigit): Fixing (trac #92, Could not set snapping threshold)


Modified: grass/trunk/gui/wxpython/gui_modules/digit.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/digit.py	2008-03-12 05:31:04 UTC (rev 30533)
+++ grass/trunk/gui/wxpython/gui_modules/digit.py	2008-03-12 09:38:33 UTC (rev 30534)
@@ -1748,7 +1748,7 @@
         if self.snappingUnit.GetStringSelection() == "map units":
             threshold = value
         else:
-            threshold = self.parent.digit.driver.GetThreshold(value)
+            threshold = self.parent.digit.driver.GetThreshold(value=value)
 
         self.snappingInfo.SetLabel(_("Snapping threshold is %(value).1f %(units)s") % 
                                    {'value' : threshold,
@@ -1760,7 +1760,7 @@
         """Snapping units change -> update static text"""
         value = self.snappingValue.GetValue()
         units = self.snappingUnit.GetStringSelection()
-        threshold = self.parent.digit.driver.GetThreshold(value, units)
+        threshold = self.parent.digit.driver.GetThreshold(value=value, units=units)
 
         if units == "map units":
             self.snappingInfo.SetLabel(_("Snapping threshold is %(value).1f %(units)s") % 



More information about the grass-commit mailing list