diff --git a/pcbnew/drc.cpp b/pcbnew/drc.cpp index e6cabd9ffb..0fd179e9c5 100644 --- a/pcbnew/drc.cpp +++ b/pcbnew/drc.cpp @@ -1174,6 +1174,9 @@ void DRC::testDisabledLayers() wxCHECK( board, /*void*/ ); LSET disabledLayers = board->GetEnabledLayers().flip(); + // Perform the test only for copper layers + disabledLayers &= LSET::AllCuMask(); + auto createMarker = [&]( BOARD_ITEM* aItem ) { addMarkerToPcb( newMarker( aItem->GetPosition(), aItem, DRCE_DISABLED_LAYER_ITEM ) );