Similar local labels on different sheets are fine

Fixes https://gitlab.com/kicad/code/kicad/-/issues/21334
This commit is contained in:
Jeff Young 2025-07-30 18:03:33 +01:00
parent 15468c86b9
commit 3eb66e1b3d

View File

@ -1349,6 +1349,13 @@ int ERC_TESTER::TestSimilarLabels()
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 );
errors += 1;
}