Browse Source

Fix logic bug in rule processing.

Fixes https://gitlab.com/kicad/code/kicad/issues/9011
6.0.7
Jeff Young 4 years ago
parent
commit
9770962ab4
  1. 9
      pcbnew/drc/drc_engine.cpp

9
pcbnew/drc/drc_engine.cpp

@ -1143,14 +1143,13 @@ DRC_CONSTRAINT DRC_ENGINE::EvalRules( DRC_CONSTRAINT_T aConstraintType, const BO
return constraint;
}
}
else if( constraint.GetParentRule() )
if( !constraint.GetParentRule() )
{
return constraint;
constraint.m_Type = NULL_CONSTRAINT;
constraint.m_DisallowFlags = 0;
}
constraint.m_Type = NULL_CONSTRAINT;
constraint.m_DisallowFlags = 0;
return constraint;
#undef REPORT

Loading…
Cancel
Save