diff --git a/pcbnew/drc/drc_engine.cpp b/pcbnew/drc/drc_engine.cpp index 0b4d316e97..ad11d1a303 100644 --- a/pcbnew/drc/drc_engine.cpp +++ b/pcbnew/drc/drc_engine.cpp @@ -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 ) {