From d74bb131e12739510111f1efcb7703155a36ebfc Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Tue, 6 Mar 2018 11:38:54 +0100 Subject: [PATCH] SCH_LEGACY_PLUGIN_CACHE: Do not add the root alias for loaded symbols The root alias is added in the loop iterating through all aliases. --- eeschema/sch_legacy_plugin.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/eeschema/sch_legacy_plugin.cpp b/eeschema/sch_legacy_plugin.cpp index 0ba39f79e6..02f9a1d87f 100644 --- a/eeschema/sch_legacy_plugin.cpp +++ b/eeschema/sch_legacy_plugin.cpp @@ -2370,7 +2370,6 @@ void SCH_LEGACY_PLUGIN_CACHE::Load() { // Read one DEF/ENDDEF part entry from library: loadPart( reader ); - } } @@ -2629,10 +2628,7 @@ LIB_PART* SCH_LEGACY_PLUGIN_CACHE::loadPart( FILE_LINE_READER& aReader ) loadFootprintFilters( part, aReader ); else if( strCompare( "ENDDEF", line, &line ) ) // End of part description { - // Now all is good, Add the root alias to the cache alias list. - m_aliases[ part->GetName() ] = part->GetAlias( part->GetName() ); - - // Add aliases when exist + // Add aliases for( size_t ii = 0; ii < part->GetAliasCount(); ++ii ) m_aliases[ part->GetAlias( ii )->GetName() ] = part->GetAlias( ii );