From 0094a0fc1539d2ea1ec3190d1c3941fad4ca4cc6 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Mon, 26 Dec 2022 11:32:43 +0000 Subject: [PATCH] Treat teardrops as tracks not zones for disallow constraints. Fixes https://gitlab.com/kicad/code/kicad/issues/13264 --- pcbnew/drc/drc_engine.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pcbnew/drc/drc_engine.cpp b/pcbnew/drc/drc_engine.cpp index 977dde1c0d..e1dc89c302 100644 --- a/pcbnew/drc/drc_engine.cpp +++ b/pcbnew/drc/drc_engine.cpp @@ -1106,6 +1106,12 @@ DRC_CONSTRAINT DRC_ENGINE::EvalRules( DRC_CONSTRAINT_T aConstraintType, const BO case PCB_LOCATE_HOLE_T: mask = DRC_DISALLOW_HOLES; break; default: mask = 0; break; } + + if( const ZONE* zone = dynamic_cast( a ) ) + { + if( zone->IsTeardropArea() ) + mask = DRC_DISALLOW_TRACKS; + } } if( ( c->constraint.m_DisallowFlags & mask ) == 0 )