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;