浏览代码

wxGUI: statusbar does have to have the region property (#2106)

Fix after adding Map Display properties dialog
Linda Kladivova 3 年之前
父节点
当前提交
973ac696e7
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      gui/wxpython/mapdisp/statusbar.py

+ 1 - 1
gui/wxpython/mapdisp/statusbar.py

@@ -303,7 +303,7 @@ class SbManager:
     def OnToggleStatus(self, event):
         """Toggle status text"""
         self.Update()
-        if event.GetSelection() == 3:  # use something better than magic numbers
+        if event.GetSelection() == 3 and self.HasProperty("region"):
             # show computation region extent by default
             self.statusbarItems["region"].SetValue(True)
             # redraw map if auto-rendering is enabled