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:
parent
b608ebd058
commit
c02cadec2a
|
@ -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 )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue