[GRASS-SVN] r45265 - grass/branches/develbranch_6/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Jan 31 14:34:02 EST 2011


Author: martinl
Date: 2011-01-31 11:34:02 -0800 (Mon, 31 Jan 2011)
New Revision: 45265

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/toolbars.py
Log:
wxGUI: fix for missing toolbar variable 
(merge r45264 from trunk)


Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/toolbars.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/toolbars.py	2011-01-31 19:30:33 UTC (rev 45264)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/toolbars.py	2011-01-31 19:34:02 UTC (rev 45265)
@@ -109,10 +109,11 @@
         if self.parent.GetName() == "GCPFrame":
             return
         
-        if self.parent.toolbars['vdigit']:
-            # update vdigit toolbar (unselect currently selected tool)
-            id = self.parent.toolbars['vdigit'].GetAction(type = 'id')
-            self.parent.toolbars['vdigit'].ToggleTool(id, False)
+        if hasattr(self.parent, 'toolbars'):
+            if self.parent.toolbars['vdigit']:
+                # update vdigit toolbar (unselect currently selected tool)
+                id = self.parent.toolbars['vdigit'].GetAction(type = 'id')
+                self.parent.toolbars['vdigit'].ToggleTool(id, False)
         
         if event:
             # deselect previously selected tool



More information about the grass-commit mailing list