From 965478365a4e87859ee2fd38523c3f6d6b934ba4 Mon Sep 17 00:00:00 2001 From: Wayne Stambaugh Date: Sat, 14 Dec 2019 08:28:43 -0500 Subject: [PATCH] Eeschema: minor fix loading inherited symbol fields. --- eeschema/sch_legacy_plugin.cpp | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/eeschema/sch_legacy_plugin.cpp b/eeschema/sch_legacy_plugin.cpp index 99e41ce160..6bfdac599b 100644 --- a/eeschema/sch_legacy_plugin.cpp +++ b/eeschema/sch_legacy_plugin.cpp @@ -2884,29 +2884,6 @@ void SCH_LEGACY_PLUGIN_CACHE::loadAliases( std::unique_ptr& aPart, newPart->SetParent( aPart.get() ); - // Inherit the mandatory field positions and the reference and footprint field - // values from the parent symbol. - for( LIB_ITEM& item : aPart->GetDrawItems() ) - { - if( item.Type() != LIB_FIELD_T ) - continue; - - LIB_FIELD* field = (LIB_FIELD*) &item; - wxString tmp = field->GetText(); - - if( field->GetId() < MANDATORY_FIELDS ) - { - // Get all of the parent field information except for the string. - *newPart->GetField( field->GetId() ) = *field; - - // Restore the alias strings that are defined in this file format. - if( field->GetId() == REFERENCE - || field->GetId() == FOOTPRINT - || field->GetId() == VALUE ) - newPart->GetField( field->GetId() )->SetText( tmp ); - } - } - // This will prevent duplicate aliases. (*aMap)[ newPart->GetName() ] = newPart; }