Footprint wizard frame: rebuild the parameter grid list after any parameter change. The python footprint wizard can modify other parameters than the one that was changed by user. So the parameter grid list must be updated after every parameter change.

Fixes: lp:1846404
https://bugs.launchpad.net/kicad/+bug/1846404
This commit is contained in:
jean-pierre charras 2019-11-02 10:17:35 +01:00
parent decbb65f09
commit 2b4cfd9a60
2 changed files with 8 additions and 0 deletions

View File

@ -446,6 +446,8 @@ void FOOTPRINT_WIZARD_FRAME::ReCreateParameterList()
if( footprintWizard == NULL )
return;
m_parameterGrid->Freeze();
m_parameterGrid->ClearGrid();
m_parameterGridPage = m_pageList->GetSelection();
@ -532,6 +534,8 @@ void FOOTPRINT_WIZARD_FRAME::ReCreateParameterList()
}
ResizeParamColumns();
m_parameterGrid->Thaw();
}
void FOOTPRINT_WIZARD_FRAME::ResizeParamColumns()

View File

@ -278,6 +278,10 @@ void FOOTPRINT_WIZARD_FRAME::ParametersUpdated( wxGridEvent& event )
ReloadFootprint();
DisplayWizardInfos();
// The python script can have modified some other parameters.
// So rebuild the current parameter list with new values, just in case.
ReCreateParameterList();
}
}