diff --git a/pcbnew/class_pad.cpp b/pcbnew/class_pad.cpp index 2085eb9482..2e0c91fcae 100644 --- a/pcbnew/class_pad.cpp +++ b/pcbnew/class_pad.cpp @@ -209,11 +209,12 @@ bool D_PAD::IsPadOnLayer( int aLayer ) const return IsOnLayer( static_cast( aLayer ) ); if( !m_removeUnconnectedLayer ) - return true; + return IsOnLayer( static_cast( aLayer ) ); /// Plated through hole pads need copper on the top/bottom layers for proper soldering + /// Unless the user has removed them in the pad dialog if( aLayer == F_Cu || aLayer == B_Cu ) - return true; + return IsOnLayer( static_cast( aLayer ) ); return board->GetConnectivity()->IsConnectedOnLayer( this, static_cast( aLayer ), { PCB_TRACE_T, PCB_ARC_T, PCB_VIA_T, PCB_PAD_T } );