From c7d39d22dbae45ff1d5e6bd70cd67c44ebc26cba Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Fri, 10 Aug 2018 13:44:21 +0200 Subject: [PATCH] FOOTPRINT_WIZARD_FRAME: ensure the draw panel is always visible, even if the config file is incorrect. --- pcbnew/footprint_wizard_frame.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pcbnew/footprint_wizard_frame.cpp b/pcbnew/footprint_wizard_frame.cpp index cd755bfdf4..32a0071970 100644 --- a/pcbnew/footprint_wizard_frame.cpp +++ b/pcbnew/footprint_wizard_frame.cpp @@ -215,6 +215,8 @@ FOOTPRINT_WIZARD_FRAME::FOOTPRINT_WIZARD_FRAME( KIWAY* aKiway, m_auimgr.GetPane( m_parametersPanel ).MinSize( wxSize( 360, 180 ) ); m_auimgr.LoadPerspective( m_auiPerspective ); + // Ensure the draw panel is shown, regardless the perspective config: + m_auimgr.GetPane( wxT( "DrawFrame" ) ).Show( true ); // Now Drawpanel is sized, we can use BestZoom to show the component (if any) #ifdef USE_WX_GRAPHICS_CONTEXT