Exclude rules which match no enabled layers.

Fixes https://gitlab.com/kicad/code/kicad/issues/10227
This commit is contained in:
Jeff Young 2022-01-15 00:19:36 +00:00
parent 2b14b60c32
commit 0967cc82e2
1 changed files with 2 additions and 1 deletions

View File

@ -1046,7 +1046,8 @@ DRC_CONSTRAINT DRC_ENGINE::EvalRules( DRC_CONSTRAINT_T aConstraintType, const BO
} }
} }
if( aLayer != UNDEFINED_LAYER && !c->layerTest.test( aLayer ) ) if( ( aLayer != UNDEFINED_LAYER && !c->layerTest.test( aLayer ) )
|| ( m_board->GetEnabledLayers() & c->layerTest ).count() == 0 )
{ {
if( implicit ) if( implicit )
{ {