[GRASS-SVN] r72455 - grass/trunk/gui/wxpython/mapdisp

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Mar 20 17:55:21 PDT 2018


Author: annakrat
Date: 2018-03-20 17:55:21 -0700 (Tue, 20 Mar 2018)
New Revision: 72455

Modified:
   grass/trunk/gui/wxpython/mapdisp/frame.py
Log:
wxGUI: correctly delete layertree, see #3505

Modified: grass/trunk/gui/wxpython/mapdisp/frame.py
===================================================================
--- grass/trunk/gui/wxpython/mapdisp/frame.py	2018-03-20 23:49:03 UTC (rev 72454)
+++ grass/trunk/gui/wxpython/mapdisp/frame.py	2018-03-21 00:55:21 UTC (rev 72455)
@@ -848,10 +848,9 @@
         elif self.page:
             pgnum = self.layerbook.GetPageIndex(self.page)
             if pgnum > -1:
-                self.layerbook.RemovePage(pgnum)
+                self._mgr.UnInit()
+                self.layerbook.DeletePage(pgnum)
         Debug.msg(2, "MapFrame.OnCloseWindow(): function ends")
-        self._mgr.UnInit()
-        self.Destroy()
 
     def Query(self, x, y):
         """Query selected layers.



More information about the grass-commit mailing list