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

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Dec 11 11:47:39 PST 2013


Author: martinl
Date: 2013-12-11 11:47:39 -0800 (Wed, 11 Dec 2013)
New Revision: 58443

Modified:
   grass/trunk/gui/wxpython/vdigit/toolbars.py
Log:
wxGUI/vdigit: fix switching area tools

Modified: grass/trunk/gui/wxpython/vdigit/toolbars.py
===================================================================
--- grass/trunk/gui/wxpython/vdigit/toolbars.py	2013-12-11 19:35:22 UTC (rev 58442)
+++ grass/trunk/gui/wxpython/vdigit/toolbars.py	2013-12-11 19:47:39 UTC (rev 58443)
@@ -344,13 +344,14 @@
     def OnAddAreaTool(self, event):
         """!Area tool activated."""
         Debug.msg (2, "VDigitToolbar.OnAddAreaTool()")
+        
         # we need the previous id
         if 'type' not in self.action or \
-                self.action['type'] in ('addArea', ''): # default action
+                self.action['type'] in ('area', ''): # default action
             self.OnAddArea(event)
-        elif self.action['type'] == 'addBoundary':
+        elif self.action['type'] == 'boundary':
             self.OnAddBoundary(event)
-        elif self.action['type'] == 'addCentroid':
+        elif self.action['type'] == 'centroid':
             self.OnAddCentroid(event)
 
     def OnAddAreaMenu(self, event):



More information about the grass-commit mailing list