diff --git a/pcbnew/drc/drc_test_provider_copper_clearance.cpp b/pcbnew/drc/drc_test_provider_copper_clearance.cpp index 1cd9193768..d3afa35186 100644 --- a/pcbnew/drc/drc_test_provider_copper_clearance.cpp +++ b/pcbnew/drc/drc_test_provider_copper_clearance.cpp @@ -513,7 +513,7 @@ bool DRC_TEST_PROVIDER_COPPER_CLEARANCE::testPadAgainstItem( PAD* pad, SHAPE* pa testHoles = false; } - if( pad->GetAttribute() == PAD_ATTRIB_NPTH && !pad->FlashLayer( layer ) ) + if( pad->GetAttribute() == PAD_ATTRIB_NPTH ) testClearance = false; if( !IsCopperLayer( layer ) ) diff --git a/pcbnew/pad.cpp b/pcbnew/pad.cpp index 83483b7e43..f43f30ac28 100644 --- a/pcbnew/pad.cpp +++ b/pcbnew/pad.cpp @@ -229,8 +229,7 @@ bool PAD::FlashLayer( int aLayer ) const if( m_keepTopBottomLayer && ( aLayer == F_Cu || aLayer == B_Cu ) ) return IsOnLayer( static_cast( aLayer ) ); - return board->GetConnectivity()->IsConnectedOnLayer( this, static_cast( aLayer ), - types ); + return board->GetConnectivity()->IsConnectedOnLayer( this, static_cast( aLayer ), types ); }