Exclude rules which match no enabled layers.

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

(cherry picked from commit 0967cc82e2)
This commit is contained in:
Jeff Young 2022-01-15 00:19:36 +00:00
parent b608ebd058
commit c02cadec2a
1 changed files with 2 additions and 1 deletions

View File

@ -1016,7 +1016,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 )
{