From 4ad37bc9ea7f74cb970c43322a6d70805a5a6ee9 Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Mon, 5 Nov 2018 14:00:01 +0100 Subject: [PATCH] Limit 'items on disabled layers' DRC check to copper layers Fixes: lp:1788248 * https://bugs.launchpad.net/kicad/+bug/1788248 --- pcbnew/drc.cpp | 3 +++ 1 file changed, 3 insertions(+) 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 ) );