Explorar el Código

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

Fix after adding Map Display properties dialog
Linda Kladivova hace 3 años
padre
commit
973ac696e7
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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