Fix logic bug in rule processing.
Fixes https://gitlab.com/kicad/code/kicad/issues/9011
This commit is contained in:
parent
3bddadc03d
commit
9770962ab4
|
@ -1143,13 +1143,12 @@ DRC_CONSTRAINT DRC_ENGINE::EvalRules( DRC_CONSTRAINT_T aConstraintType, const BO
|
||||||
return constraint;
|
return constraint;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if( constraint.GetParentRule() )
|
|
||||||
{
|
|
||||||
return constraint;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
if( !constraint.GetParentRule() )
|
||||||
|
{
|
||||||
constraint.m_Type = NULL_CONSTRAINT;
|
constraint.m_Type = NULL_CONSTRAINT;
|
||||||
constraint.m_DisallowFlags = 0;
|
constraint.m_DisallowFlags = 0;
|
||||||
|
}
|
||||||
|
|
||||||
return constraint;
|
return constraint;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue