فهرست منبع

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 سال پیش
والد
کامیت
e7eb25f862
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      gui/wxpython/mapwin/buffered.py

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

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