Need to start with full layer set if we want to end up with any.

Fixes https://gitlab.com/kicad/code/kicad/issues/6822
This commit is contained in:
Jeff Young 2020-12-23 15:14:41 +00:00
parent 2f087dfa1b
commit f30fa60ed7
1 changed files with 3 additions and 0 deletions

View File

@ -356,6 +356,9 @@ void DIALOG_DRC::OnDRCItemSelected( wxDataViewEvent& aEvent )
BOARD_ITEM* c = board->GetItem( rc_item->GetAuxItem2ID() );
BOARD_ITEM* d = board->GetItem( rc_item->GetAuxItem3ID() );
if( a || b || c || d )
violationLayers = LSET::AllLayersMask();
if( a )
violationLayers &= getActiveLayers( a );