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.
This commit is contained in:
parent
a5844c9bb8
commit
d74bb131e1
|
@ -2370,7 +2370,6 @@ void SCH_LEGACY_PLUGIN_CACHE::Load()
|
||||||
{
|
{
|
||||||
// Read one DEF/ENDDEF part entry from library:
|
// Read one DEF/ENDDEF part entry from library:
|
||||||
loadPart( reader );
|
loadPart( reader );
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2629,10 +2628,7 @@ LIB_PART* SCH_LEGACY_PLUGIN_CACHE::loadPart( FILE_LINE_READER& aReader )
|
||||||
loadFootprintFilters( part, aReader );
|
loadFootprintFilters( part, aReader );
|
||||||
else if( strCompare( "ENDDEF", line, &line ) ) // End of part description
|
else if( strCompare( "ENDDEF", line, &line ) ) // End of part description
|
||||||
{
|
{
|
||||||
// Now all is good, Add the root alias to the cache alias list.
|
// Add aliases
|
||||||
m_aliases[ part->GetName() ] = part->GetAlias( part->GetName() );
|
|
||||||
|
|
||||||
// Add aliases when exist
|
|
||||||
for( size_t ii = 0; ii < part->GetAliasCount(); ++ii )
|
for( size_t ii = 0; ii < part->GetAliasCount(); ++ii )
|
||||||
m_aliases[ part->GetAlias( ii )->GetName() ] = part->GetAlias( ii );
|
m_aliases[ part->GetAlias( ii )->GetName() ] = part->GetAlias( ii );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue