Fix failure to clear list before reusing it.

Fixes https://gitlab.com/kicad/code/kicad/issues/6927
This commit is contained in:
Jeff Young 2021-01-04 00:32:19 +00:00
parent c09d3b765a
commit 6542960ba5
1 changed files with 1 additions and 0 deletions

View File

@ -272,6 +272,7 @@ void DIALOG_CHANGE_SYMBOLS::updateFieldsList()
if( !isMatch( symbol, &instance ) ) if( !isMatch( symbol, &instance ) )
continue; continue;
fields.clear();
symbol->GetFields( fields, false ); symbol->GetFields( fields, false );
for( unsigned i = MANDATORY_FIELDS; i < fields.size(); ++i ) for( unsigned i = MANDATORY_FIELDS; i < fields.size(); ++i )