From eeee5afdfd69d9acb9c09c877902e451bee682a3 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Mon, 21 Mar 2022 20:49:08 +0000 Subject: [PATCH] Zero out parent rule when overridden by local property. Fixes https://gitlab.com/kicad/code/kicad/issues/11197 (cherry picked from commit b679a216515956b8cc71eae7c7e7be9a228f9e50) --- pcbnew/drc/drc_engine.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/pcbnew/drc/drc_engine.cpp b/pcbnew/drc/drc_engine.cpp index c52bc9a210..45d4f8b9bb 100644 --- a/pcbnew/drc/drc_engine.cpp +++ b/pcbnew/drc/drc_engine.cpp @@ -1133,6 +1133,7 @@ DRC_CONSTRAINT DRC_ENGINE::EvalRules( DRC_CONSTRAINT_T aConstraintType, const BO if( localA > global || localB > global ) { + constraint.SetParentRule( nullptr ); constraint.SetName( m_msg ); constraint.m_Value.SetMin( clearance ); return constraint;