fpwizard: Switch page after checking parameters

The parameter check was triggered by a grid clear event which was sent
after the current page number was changed, creating a mismatch between
the old and new parameter list lengths.

Fixes: lp:1754738
* https://bugs.launchpad.net/kicad/+bug/1754738
This commit is contained in:
Alessandro Gatti 2018-03-11 19:10:27 -04:00 committed by Jon Evans
parent d52491c715
commit 53c9143b64
1 changed files with 1 additions and 1 deletions

View File

@ -348,8 +348,8 @@ void FOOTPRINT_WIZARD_FRAME::ReCreateParameterList()
if( footprintWizard == NULL ) if( footprintWizard == NULL )
return; return;
m_parameterGridPage = m_pageList->GetSelection();
m_parameterGrid->ClearGrid(); m_parameterGrid->ClearGrid();
m_parameterGridPage = m_pageList->GetSelection();
if( m_parameterGridPage < 0 ) // Should not happen if( m_parameterGridPage < 0 ) // Should not happen
return; return;