浏览代码

g.gui.tplot: CoordinateSelect must be explicitely closed

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@69246 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 8 年之前
父节点
当前提交
1625aaaf09
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      gui/wxpython/tplot/frame.py

+ 3 - 3
gui/wxpython/tplot/frame.py

@@ -130,9 +130,9 @@ class TplotFrame(wx.Frame):
         tgis.stop_subprocesses()
 
     def onClose(self, evt):
-        # this two lines return errors during exit
-        # self.coorval.OnClose()
-        # self.cats.OnClose()
+        if self._giface.GetMapDisplay():
+            self.coorval.OnClose()
+            self.cats.OnClose()
         self.Destroy()
 
     def _layout(self):