Browse Source

wxGUI: GetMapWindow replaced by more general method GetWindow (#1717)

Fixes #1714
Linda Kladivova 3 years ago
parent
commit
d5536bded2
1 changed files with 3 additions and 3 deletions
  1. 3 3
      gui/wxpython/mapdisp/statusbar.py

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

@@ -309,7 +309,7 @@ class SbManager:
             self.statusbarItems["region"].SetValue(True)
             # redraw map if auto-rendering is enabled
             if self.mapFrame.IsAutoRendered():
-                self.mapFrame.GetMapWindow().UpdateMap(render=False)
+                self.mapFrame.GetWindow().UpdateMap(render=False)
 
     def SetMode(self, modeIndex):
         """Sets current mode
@@ -495,7 +495,7 @@ class SbShowRegion(SbItem):
 
         # redraw map if auto-rendering is enabled
         if self.mapFrame.IsAutoRendered():
-            self.mapFrame.GetMapWindow().UpdateMap(render=False)
+            self.mapFrame.GetWindow().UpdateMap(render=False)
 
     def SetValue(self, value):
         self._disconnectShowRegion()
@@ -603,7 +603,7 @@ class SbResolution(SbItem):
         self._connectResolutionChange()
         # redraw map if auto-rendering is enabled
         if self.mapFrame.IsAutoRendered():
-            self.mapFrame.GetMapWindow().UpdateMap()
+            self.mapFrame.GetWindow().UpdateMap()
 
 
 class SbMapScale(SbItem):