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 ) {