Don't trip over a uniquified-name in the schematic library-symbol cache.
Fixes https://gitlab.com/kicad/code/kicad/issues/14160
This commit is contained in:
parent
d3f4494925
commit
912bd4458f
|
@ -286,7 +286,7 @@ int LIB_SYMBOL::Compare( const LIB_SYMBOL& aRhs, int aCompareFlags ) const
|
||||||
|
|
||||||
if( lhsField->GetId() == VALUE_FIELD )
|
if( lhsField->GetId() == VALUE_FIELD )
|
||||||
{
|
{
|
||||||
if( ( aCompareFlags & LIB_ITEM::COMPARE_FLAGS::ERC ) == 0 || IsPower() )
|
if( ( aCompareFlags & LIB_ITEM::COMPARE_FLAGS::ERC ) == 0 )
|
||||||
retv = lhsItem->compare( *rhsItem, aCompareFlags );
|
retv = lhsItem->compare( *rhsItem, aCompareFlags );
|
||||||
}
|
}
|
||||||
else if( lhsField->IsMandatory() )
|
else if( lhsField->IsMandatory() )
|
||||||
|
|
Loading…
Reference in New Issue