Skip to content

Commit

Permalink
wxGUI: statusbar does have to have the region property (#2106)
Browse files Browse the repository at this point in the history
Fix after adding Map Display properties dialog
  • Loading branch information
lindakarlovska committed Jan 20, 2022
1 parent 432ceb7 commit 973ac69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gui/wxpython/mapdisp/statusbar.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ def _progressHidden(self):
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
Expand Down

0 comments on commit 973ac69

Please sign in to comment.