From be192d5df0bec018ab9f2447305244c99e37b8a8 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Fri, 14 Jun 2024 22:55:40 +0100 Subject: [PATCH] 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.) (cherry picked from commit 8cddd40fc9bc1593e413af3ab3531da946b0aeaa) --- pcbnew/drc/drc_test_provider_solder_mask.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pcbnew/drc/drc_test_provider_solder_mask.cpp b/pcbnew/drc/drc_test_provider_solder_mask.cpp index cd5c14bfab..4c92cab4a0 100644 --- a/pcbnew/drc/drc_test_provider_solder_mask.cpp +++ b/pcbnew/drc/drc_test_provider_solder_mask.cpp @@ -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 );