Browse Source

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
6.0.7
Seth Hillbrand 4 years ago
parent
commit
7d96d5940d
  1. 3
      pcbnew/pad.cpp

3
pcbnew/pad.cpp

@ -219,6 +219,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 )

Loading…
Cancel
Save