From 53c9143b64610010a54adf063da479ff6a96dd17 Mon Sep 17 00:00:00 2001 From: Alessandro Gatti Date: Sun, 11 Mar 2018 19:10:27 -0400 Subject: [PATCH] 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 --- pcbnew/footprint_wizard_frame.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/footprint_wizard_frame.cpp b/pcbnew/footprint_wizard_frame.cpp index f2232347cb..62061ae596 100644 --- a/pcbnew/footprint_wizard_frame.cpp +++ b/pcbnew/footprint_wizard_frame.cpp @@ -348,8 +348,8 @@ void FOOTPRINT_WIZARD_FRAME::ReCreateParameterList() if( footprintWizard == NULL ) return; - m_parameterGridPage = m_pageList->GetSelection(); m_parameterGrid->ClearGrid(); + m_parameterGridPage = m_pageList->GetSelection(); if( m_parameterGridPage < 0 ) // Should not happen return;