瀏覽代碼

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 10 年之前
父節點
當前提交
2d0849eb9a
共有 1 個文件被更改,包括 2 次插入1 次删除
  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)