Zero out parent rule when overridden by local property.

Fixes https://gitlab.com/kicad/code/kicad/issues/11197

(cherry picked from commit b679a21651)
This commit is contained in:
Jeff Young 2022-03-21 20:49:08 +00:00
parent 790b810621
commit eeee5afdfd
1 changed files with 1 additions and 0 deletions

View File

@ -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;