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:
Maciej Suminski 2018-11-05 14:00:01 +01:00
parent 293bc52299
commit 4ad37bc9ea
1 changed files with 3 additions and 0 deletions

View File

@ -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 ) );