From d816fb071fb59fe4e126283e889580f157e654a5 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Wed, 26 Apr 2023 12:46:50 +0100 Subject: [PATCH] Use fileds from flattened lib symbol when updating. Fixes https://gitlab.com/kicad/code/kicad/issues/14577 --- eeschema/dialogs/dialog_change_symbols.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/eeschema/dialogs/dialog_change_symbols.cpp b/eeschema/dialogs/dialog_change_symbols.cpp index 02200b3a00..5045575ae4 100644 --- a/eeschema/dialogs/dialog_change_symbols.cpp +++ b/eeschema/dialogs/dialog_change_symbols.cpp @@ -611,9 +611,9 @@ int DIALOG_CHANGE_SYMBOLS::processSymbols( const std::mapGetFieldById( (int) i ); + libField = symbol->GetLibSymbolRef()->GetFieldById( (int) i ); else - libField = libSymbol->FindField( field.GetName() ); + libField = symbol->GetLibSymbolRef()->FindField( field.GetName() ); if( libField ) { @@ -672,7 +672,7 @@ int DIALOG_CHANGE_SYMBOLS::processSymbols( const std::map libFields; - libSymbol->GetFields( libFields ); + symbol->GetLibSymbolRef()->GetFields( libFields ); for( unsigned i = MANDATORY_FIELDS; i < libFields.size(); ++i ) {