diff --git a/pcbnew/pad.cpp b/pcbnew/pad.cpp index 8ff264ed49..d4746b9669 100644 --- a/pcbnew/pad.cpp +++ b/pcbnew/pad.cpp @@ -219,6 +219,9 @@ bool PAD::FlashLayer( int aLayer ) const if( aLayer != UNDEFINED_LAYER && !IsOnLayer( static_cast( aLayer ) ) ) return false; + if( aLayer == UNDEFINED_LAYER ) + return true; + if( GetAttribute() == PAD_ATTRIB::NPTH && IsCopperLayer( aLayer ) ) { if( GetShape() == PAD_SHAPE::CIRCLE && GetDrillShape() == PAD_DRILL_SHAPE_CIRCLE )