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:
Jeff Young 2023-04-12 18:32:02 +01:00
parent d3f4494925
commit 912bd4458f
1 changed files with 1 additions and 1 deletions

View File

@ -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() )