Skip to content

Commit

Permalink
wxGUI/mapwin: check if 'BufferedMapWindow' instance exist before call…
Browse files Browse the repository at this point in the history
…ing '_runUpdateMap()' method (#1456)

Related to switching MAPSETs between different LOCATIONs if the
3D view is activated.
  • Loading branch information
tmszi committed May 6, 2021
1 parent f222a5c commit e7eb25f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gui/wxpython/mapwin/buffered.py
Original file line number Diff line number Diff line change
Expand Up @@ -925,7 +925,7 @@ def _timingFunction(self, pid):
return

def _onUpdateMap(self, event):
if self.timerRunId == event.pid:
if self and self.timerRunId == event.pid:
self._runUpdateMap()

def _runUpdateMap(self):
Expand Down

0 comments on commit e7eb25f

Please sign in to comment.