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

(cherry picked from commit 7d96d5940d)
This commit is contained in:
Seth Hillbrand 2022-04-04 12:24:56 -07:00
parent 7f7910d922
commit 1926af0c34
1 changed files with 3 additions and 0 deletions

View File

@ -238,6 +238,9 @@ bool PAD::FlashLayer( int aLayer ) const
if( aLayer != UNDEFINED_LAYER && !IsOnLayer( static_cast<PCB_LAYER_ID>( 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 )