Exclude rules which match no enabled layers.
Fixes https://gitlab.com/kicad/code/kicad/issues/10227
This commit is contained in:
parent
2b14b60c32
commit
0967cc82e2
|
@ -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 )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue