Check mask apertures on the mask layer.

(Otherwise testing A:B and B:A will add items to the
m_maskApertureNetMap cache on different layers.)
This commit is contained in:
Jeff Young 2024-06-14 22:55:40 +01:00
parent b2588e0bbf
commit 8cddd40fc9
1 changed files with 2 additions and 2 deletions

View File

@ -548,7 +548,7 @@ void DRC_TEST_PROVIDER_SOLDER_MASK::testItemAgainstItems( BOARD_ITEM* aItem, con
// two distinct nets.
if( isMaskAperture( aItem ) )
{
if( checkMaskAperture( aItem, other, aRefLayer, otherNet, &colliding ) )
if( checkMaskAperture( aItem, other, aTargetLayer, otherNet, &colliding ) )
{
auto drce = DRC_ITEM::Create( DRCE_SOLDERMASK_BRIDGE );
@ -560,7 +560,7 @@ void DRC_TEST_PROVIDER_SOLDER_MASK::testItemAgainstItems( BOARD_ITEM* aItem, con
}
else if( isMaskAperture( other ) )
{
if( checkMaskAperture( other, aItem, aRefLayer, itemNet, &colliding ) )
if( checkMaskAperture( other, aItem, aTargetLayer, itemNet, &colliding ) )
{
auto drce = DRC_ITEM::Create( DRCE_SOLDERMASK_BRIDGE );