Skip to content

Commit

Permalink
wxGUI Layer Manager: fix close Layers Display FlatNotebook page (#411)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmszi committed Mar 16, 2020
1 parent 1eb9d2d commit 5b4722a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gui/wxpython/lmgr/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -688,6 +688,7 @@ def OnCBPageClosed(self, event):

self.notebookLayers.GetPage(event.GetSelection()).maptree.Map.Clean()
self.notebookLayers.GetPage(event.GetSelection()).maptree.Close(True)
self.notebookLayers.GetPage(event.GetSelection()).maptree.mapdisplay._mgr.UnInit()

self.currentPage = None

Expand Down Expand Up @@ -1525,7 +1526,7 @@ def LoadWorkspaceFile(self, filename):
lcmd=layer['cmd'],
lgroup=layer['group'],
lnviz=layer['nviz'],
lvdigit=layer['vdigit'],
lvdigit=layer['vdigit'],
loadWorkspace=True)

if 'selected' in layer:
Expand Down

0 comments on commit 5b4722a

Please sign in to comment.