Return nominal pad shape when a specific layer isn't specified.

Fixes https://gitlab.com/kicad/code/kicad/issues/10755
This commit is contained in:
Jeff Young 2022-02-11 21:57:10 +00:00
parent 00934fdd84
commit 93c7046a77
1 changed files with 1 additions and 1 deletions

View File

@ -311,7 +311,7 @@ const std::shared_ptr<SHAPE_POLY_SET>& PAD::GetEffectivePolygon() const
std::shared_ptr<SHAPE> PAD::GetEffectiveShape( PCB_LAYER_ID aLayer ) const
{
if( !FlashLayer( aLayer ) )
if( aLayer != UNDEFINED_LAYER && !FlashLayer( aLayer ) )
{
if( GetAttribute() == PAD_ATTRIB::PTH )
{