diff --git a/pcbnew/drc/drc_engine.cpp b/pcbnew/drc/drc_engine.cpp index 57209231f8..7bfb0bc8f1 100644 --- a/pcbnew/drc/drc_engine.cpp +++ b/pcbnew/drc/drc_engine.cpp @@ -1143,13 +1143,12 @@ DRC_CONSTRAINT DRC_ENGINE::EvalRules( DRC_CONSTRAINT_T aConstraintType, const BO return constraint; } } - else if( constraint.GetParentRule() ) - { - return constraint; - } - constraint.m_Type = NULL_CONSTRAINT; - constraint.m_DisallowFlags = 0; + if( !constraint.GetParentRule() ) + { + constraint.m_Type = NULL_CONSTRAINT; + constraint.m_DisallowFlags = 0; + } return constraint;