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:
parent
2f087dfa1b
commit
f30fa60ed7
|
@ -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 );
|
||||
|
||||
|
|
Loading…
Reference in New Issue