FOOTPRINT_WIZARD_FRAME: minor fixes.

Fixes #7435
https://gitlab.com/kicad/code/kicad/issues/7435
This commit is contained in:
jean-pierre charras 2021-02-05 18:30:24 +01:00
parent 38cc2f106b
commit d2213708eb
2 changed files with 8 additions and 1 deletions

View File

@ -609,8 +609,10 @@ void FOOTPRINT_WIZARD_FRAME::ReCreateHToolbar()
KiBitmap( lib_next_xpm ),
_( "Select next parameters page" ) );
#if 0 // Currently: the 3D viewer is not useful
m_mainToolBar->AddScaledSeparator( this );
m_mainToolBar->Add( ACTIONS::show3DViewer );
#endif
m_mainToolBar->AddScaledSeparator( this );
m_mainToolBar->Add( ACTIONS::zoomRedraw );

View File

@ -47,7 +47,12 @@ void FOOTPRINT_WIZARD_FRAME::Process_Special_Functions( wxCommandEvent& event )
switch( event.GetId() )
{
case ID_FOOTPRINT_WIZARD_NEXT:
m_pageList->SetSelection( m_pageList->GetSelection() + 1, true );
page = m_pageList->GetSelection() + 1;
if( (int)m_pageList->GetCount() <= page )
page = m_pageList->GetCount() - 1;
m_pageList->SetSelection( page, true );
ClickOnPageList( event );
break;