Explorar o código

wxGUI/mapdisp: disable zoom to region in 3D mode (button introduced in https://trac.osgeo.org/grass/changeset/58445)

This does not fix the problem when these buttons are not enabled when switching from 3D view to Digitize

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@61590 15284696-431f-4ddb-bdfa-cd5b030d7da7
Vaclav Petras %!s(int64=10) %!d(string=hai) anos
pai
achega
2d0849eb9a
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      gui/wxpython/mapdisp/toolbars.py

+ 2 - 1
gui/wxpython/mapdisp/toolbars.py

@@ -264,7 +264,8 @@ class MapToolbar(BaseToolbar):
         
     def Enable2D(self, enabled):
         """Enable/Disable 2D display mode specific tools"""
-        for tool in (self.zoomMenu,
+        for tool in (self.zoomRegion,
+                     self.zoomMenu,
                      self.analyze,
                      self.printMap):
             self.EnableTool(tool, enabled)