From 2f2aba233358466362b1a56f0c104a6d4cfedacb Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Thu, 15 Aug 2019 09:27:28 +0200 Subject: [PATCH] FOOTPRINT_WIZARD_FRAME: fix UI issues (incorrect size of message panel and not selectable first item in param list) Fixes: lp:1840193 https://bugs.launchpad.net/kicad/+bug/1840193 --- pcbnew/footprint_wizard_frame.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pcbnew/footprint_wizard_frame.cpp b/pcbnew/footprint_wizard_frame.cpp index 5b00c1581e..8e39f0aefe 100644 --- a/pcbnew/footprint_wizard_frame.cpp +++ b/pcbnew/footprint_wizard_frame.cpp @@ -2,9 +2,9 @@ * This program source code file is part of KiCad, a free EDA CAD application. * * Copyright (C) 2012-2015 Miguel Angel Ajo Pelayo - * Copyright (C) 2012-2018 Jean-Pierre Charras, jp.charras at wanadoo.fr + * Copyright (C) 2012-2019 Jean-Pierre Charras, jp.charras at wanadoo.fr * Copyright (C) 2008-2015 Wayne Stambaugh - * Copyright (C) 2004-2018 KiCad Developers, see AUTHORS.txt for contributors. + * Copyright (C) 2004-2019 KiCad Developers, see AUTHORS.txt for contributors. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -195,7 +195,8 @@ FOOTPRINT_WIZARD_FRAME::FOOTPRINT_WIZARD_FRAME( KIWAY* aKiway, wxWindow* aParent m_auimgr.SetArtProvider( new EDA_DOCKART() ); m_auimgr.AddPane( m_mainToolBar, EDA_PANE().HToolbar().Name( "MainToolbar" ).Top().Layer(6) ); - m_auimgr.AddPane( m_messagePanel, EDA_PANE().Messages().Name( "MsgPanel" ).Bottom().Layer(6) ); + m_auimgr.AddPane( m_messagePanel, EDA_PANE().Messages().Name( "MsgPanel" ).Bottom().Layer(6) + .BestSize( -1, m_MsgFrameHeight ) ); m_auimgr.AddPane( m_parametersPanel, EDA_PANE().Palette().Name( "Params" ).Left().Position(0) .Caption( _( "Parameters" ) ).MinSize( 360, 180 ) ); @@ -494,7 +495,7 @@ void FOOTPRINT_WIZARD_FRAME::ResizeParamColumns() void FOOTPRINT_WIZARD_FRAME::ClickOnPageList( wxCommandEvent& event ) { - if( m_pageList->GetSelection() > 0 ) + if( m_pageList->GetSelection() >= 0 ) { ReCreateParameterList(); GetCanvas()->Refresh();