Browse Source

wxGUI/vdigit: fix switching area tools

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@58443 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 11 years ago
parent
commit
97e39d8182
1 changed files with 4 additions and 3 deletions
  1. 4 3
      gui/wxpython/vdigit/toolbars.py

+ 4 - 3
gui/wxpython/vdigit/toolbars.py

@@ -344,13 +344,14 @@ class VDigitToolbar(BaseToolbar):
     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):