Honour "report all errors" for track/edge collisions.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/16268
This commit is contained in:
Jeff Young 2023-12-10 23:04:43 +00:00
parent a567a66d35
commit d8d71a8a6e
1 changed files with 9 additions and 1 deletions

View File

@ -133,7 +133,15 @@ bool DRC_TEST_PROVIDER_EDGE_CLEARANCE::testAgainstEdge( BOARD_ITEM* item, SHAPE*
drce->SetViolatingRule( constraint.GetParentRule() );
reportViolation( drce, pos, Edge_Cuts );
return false; // don't report violations with multiple edges; one is enough
if( item->Type() == PCB_TRACE_T || item->Type() == PCB_ARC_T )
{
return m_drcEngine->GetReportAllTrackErrors();
}
else
{
return false; // don't report violations with multiple edges; one is enough
}
}
}