Fix bug in single-item layer matching.
This commit is contained in:
parent
5010a88069
commit
98be50883d
|
@ -146,7 +146,7 @@ void MatchSelectors( const std::vector<DRC_SELECTOR*>& aSelectors,
|
|||
PCB_LAYER_ID matchLayer = candidate->m_MatchLayers[0];
|
||||
|
||||
if( !aItem->GetLayerSet().test( matchLayer )
|
||||
|| !( bItem && bItem->GetLayerSet().test( matchLayer ) ) )
|
||||
|| ( bItem && !bItem->GetLayerSet().test( matchLayer ) ) )
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue