Similar local labels on different sheets are fine

Fixes https://gitlab.com/kicad/code/kicad/-/issues/21334

(cherry picked from commit 3eb66e1b3da5847372f8221a4696a103451fd7e9)
This commit is contained in:
Jeff Young 2025-07-30 18:03:33 +01:00
parent 6867a77da0
commit d88e5972e7

View File

@ -1347,6 +1347,13 @@ int ERC_TESTER::TestSimilarLabels()
if( unnormalized != otherText ) if( unnormalized != otherText )
{ {
// Similar local labels on different sheets are fine
if( item->Type() == SCH_LABEL_T && otherItem->Type() == SCH_LABEL_T
&& sheet != otherSheet )
{
continue;
}
logError( normalized, label, sheet, otherTuple ); logError( normalized, label, sheet, otherTuple );
errors += 1; errors += 1;
} }