From 82b37a5cbe060f911d11e6c8a20f33fc6c116a4d Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Sat, 13 Oct 2018 10:10:15 +0200 Subject: [PATCH] Fix an issue (items inside FOOTPRINT_WIZARD_FRAME not displayed) when a more recent Kicad version was run. This is due to use of LoadPerspective() that creates many issues when a frame structure changes. The call to this useless method is just removed. --- pcbnew/footprint_wizard_frame.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pcbnew/footprint_wizard_frame.cpp b/pcbnew/footprint_wizard_frame.cpp index 32a0071970..dac7cda5e0 100644 --- a/pcbnew/footprint_wizard_frame.cpp +++ b/pcbnew/footprint_wizard_frame.cpp @@ -214,7 +214,10 @@ FOOTPRINT_WIZARD_FRAME::FOOTPRINT_WIZARD_FRAME( KIWAY* aKiway, // Give a min size to the parameters m_auimgr.GetPane( m_parametersPanel ).MinSize( wxSize( 360, 180 ) ); - m_auimgr.LoadPerspective( m_auiPerspective ); + // DO NOT use m_auimgr.LoadPerspective( m_auiPerspective ) here. + // It creates issues when items managed by m_auimgr are modified over the time or + // Kicad versions (some are not displayed) + // Ensure the draw panel is shown, regardless the perspective config: m_auimgr.GetPane( wxT( "DrawFrame" ) ).Show( true );