[GRASS-SVN] r72624 - grass/branches/releasebranch_7_4/gui/wxpython/mapdisp
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Apr 17 07:24:39 PDT 2018
Author: annakrat
Date: 2018-04-17 07:24:39 -0700 (Tue, 17 Apr 2018)
New Revision: 72624
Modified:
grass/branches/releasebranch_7_4/gui/wxpython/mapdisp/frame.py
Log:
wxGUI: correctly delete layertree, see #3505 (merge from trunk, r72455)
Modified: grass/branches/releasebranch_7_4/gui/wxpython/mapdisp/frame.py
===================================================================
--- grass/branches/releasebranch_7_4/gui/wxpython/mapdisp/frame.py 2018-04-17 13:01:00 UTC (rev 72623)
+++ grass/branches/releasebranch_7_4/gui/wxpython/mapdisp/frame.py 2018-04-17 14:24:39 UTC (rev 72624)
@@ -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