Sfoglia il codice sorgente

wxGUI/mapwin: check if 'BufferedMapWindow' instance exist before calling '_runUpdateMap()' method (#1456)

Related to switching MAPSETs between different LOCATIONs if the
3D view is activated.
Tomas Zigo 4 anni fa
parent
commit
e7eb25f862
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      gui/wxpython/mapwin/buffered.py

+ 1 - 1
gui/wxpython/mapwin/buffered.py

@@ -925,7 +925,7 @@ class BufferedMapWindow(MapWindowBase, Window):
                 return
                 return
 
 
     def _onUpdateMap(self, event):
     def _onUpdateMap(self, event):
-        if self.timerRunId == event.pid:
+        if self and self.timerRunId == event.pid:
             self._runUpdateMap()
             self._runUpdateMap()
 
 
     def _runUpdateMap(self):
     def _runUpdateMap(self):