Match layers only if both items are on the given layer.
This commit is contained in:
parent
ae9662c5cd
commit
7d537e83ea
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue