From d8d71a8a6e3a5ca02c2965d2f34faca6e7476aa2 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sun, 10 Dec 2023 23:04:43 +0000 Subject: [PATCH] Honour "report all errors" for track/edge collisions. Fixes https://gitlab.com/kicad/code/kicad/-/issues/16268 --- pcbnew/drc/drc_test_provider_edge_clearance.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pcbnew/drc/drc_test_provider_edge_clearance.cpp b/pcbnew/drc/drc_test_provider_edge_clearance.cpp index 1267d1d1f1..230008bf52 100644 --- a/pcbnew/drc/drc_test_provider_edge_clearance.cpp +++ b/pcbnew/drc/drc_test_provider_edge_clearance.cpp @@ -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 + } } }