Fix bug in single-item layer matching.

This commit is contained in:
Jeff Young 2020-05-21 11:25:08 +01:00
parent 5010a88069
commit 98be50883d
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;
} }