Fix logic bug in rule processing.

Fixes https://gitlab.com/kicad/code/kicad/issues/9011
This commit is contained in:
Jeff Young 2021-08-22 20:16:26 +01:00
parent 3bddadc03d
commit 9770962ab4
1 changed files with 5 additions and 6 deletions

View File

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