From da4d9ee392304c4221ad3bc9aa88f7419bb170cf Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Mon, 27 Aug 2018 20:32:45 +0200 Subject: [PATCH] Footprint viewer: ensure all panes are always visible, regardless m_auimgr.LoadPerspective() has read. Perspective is overzealous: it stores everything, so we need to be sure these panes are not hidden, regardless what the perspective has stored. Fixes: lp:1789254 https://bugs.launchpad.net/kicad/+bug/1789254 --- pcbnew/footprint_viewer_frame.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pcbnew/footprint_viewer_frame.cpp b/pcbnew/footprint_viewer_frame.cpp index e13d86efa3..062e7d3e82 100644 --- a/pcbnew/footprint_viewer_frame.cpp +++ b/pcbnew/footprint_viewer_frame.cpp @@ -287,6 +287,14 @@ FOOTPRINT_VIEWER_FRAME::FOOTPRINT_VIEWER_FRAME( KIWAY* aKiway, wxWindow* aParent wxSize tbsize = m_mainToolBar->GetSize(); m_auimgr.LoadPerspective( m_perspective, false ); m_auimgr.GetPane( m_mainToolBar ).BestSize( tbsize ); + + // LoadPerspective is overzealous: it stores everything. + // be sure these panes are not hidden, + // regardless what the perspective has stored + m_auimgr.GetPane( m_mainToolBar ).Show(); + m_auimgr.GetPane( m_libList ).Show(); + m_auimgr.GetPane( m_footprintList ).Show(); + m_auimgr.GetPane( m_messagePanel ).Show(); } // after changing something to the aui manager,