[GRASS-SVN] r69246 - grass/trunk/gui/wxpython/tplot

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Aug 23 19:13:54 PDT 2016


Author: annakrat
Date: 2016-08-23 19:13:54 -0700 (Tue, 23 Aug 2016)
New Revision: 69246

Modified:
   grass/trunk/gui/wxpython/tplot/frame.py
Log:
g.gui.tplot: CoordinateSelect must be explicitely closed

Modified: grass/trunk/gui/wxpython/tplot/frame.py
===================================================================
--- grass/trunk/gui/wxpython/tplot/frame.py	2016-08-23 15:20:23 UTC (rev 69245)
+++ grass/trunk/gui/wxpython/tplot/frame.py	2016-08-24 02:13:54 UTC (rev 69246)
@@ -130,9 +130,9 @@
         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):



More information about the grass-commit mailing list