From 7d96d5940ddd9e2dfbd5ef2bf3beb58b3f0a9b30 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Mon, 4 Apr 2022 12:24:56 -0700 Subject: [PATCH] UNDEFINED_LAYER is always flashed This is already true for vias and should be true for pads as well Fixes https://gitlab.com/kicad/code/kicad/issues/11335 --- pcbnew/pad.cpp | 3 +++ 1 file changed, 3 insertions(+) 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 )