7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-18 15:29:18 +00:00

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

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 )
{