Limit 'items on disabled layers' DRC check to copper layers
Fixes: lp:1788248 * https://bugs.launchpad.net/kicad/+bug/1788248
This commit is contained in:
parent
293bc52299
commit
4ad37bc9ea
|
@ -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 ) );
|
||||
|
|
Loading…
Reference in New Issue