From 912bd4458f6d465749d7c8caf3d99bba527894a3 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Wed, 12 Apr 2023 18:32:02 +0100 Subject: [PATCH] Don't trip over a uniquified-name in the schematic library-symbol cache. Fixes https://gitlab.com/kicad/code/kicad/issues/14160 --- eeschema/lib_symbol.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eeschema/lib_symbol.cpp b/eeschema/lib_symbol.cpp index 02e57f75c0..bbdfbbce2d 100644 --- a/eeschema/lib_symbol.cpp +++ b/eeschema/lib_symbol.cpp @@ -286,7 +286,7 @@ int LIB_SYMBOL::Compare( const LIB_SYMBOL& aRhs, int aCompareFlags ) const 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 ); } else if( lhsField->IsMandatory() )