Match layers only if both items are on the given layer.

This commit is contained in:
Jeff Young 2020-05-18 22:37:37 +01:00
parent ae9662c5cd
commit 7d537e83ea
1 changed files with 1 additions and 1 deletions

View File

@ -146,7 +146,7 @@ void MatchSelectors( const std::vector<DRC_SELECTOR*>& aSelectors,
PCB_LAYER_ID matchLayer = candidate->m_MatchLayers[0]; PCB_LAYER_ID matchLayer = candidate->m_MatchLayers[0];
if( !aItem->GetLayerSet().test( matchLayer ) if( !aItem->GetLayerSet().test( matchLayer )
&& !( bItem && bItem->GetLayerSet().test( matchLayer ) ) ) || !( bItem && bItem->GetLayerSet().test( matchLayer ) ) )
{ {
continue; continue;
} }