From 6542960ba572a96456a7a6e7fc965b2d0c376147 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Mon, 4 Jan 2021 00:32:19 +0000 Subject: [PATCH] Fix failure to clear list before reusing it. Fixes https://gitlab.com/kicad/code/kicad/issues/6927 --- eeschema/dialogs/dialog_change_symbols.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/eeschema/dialogs/dialog_change_symbols.cpp b/eeschema/dialogs/dialog_change_symbols.cpp index a742e6820d..768bc8a628 100644 --- a/eeschema/dialogs/dialog_change_symbols.cpp +++ b/eeschema/dialogs/dialog_change_symbols.cpp @@ -272,6 +272,7 @@ void DIALOG_CHANGE_SYMBOLS::updateFieldsList() if( !isMatch( symbol, &instance ) ) continue; + fields.clear(); symbol->GetFields( fields, false ); for( unsigned i = MANDATORY_FIELDS; i < fields.size(); ++i )