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:
parent
00934fdd84
commit
93c7046a77
|
@ -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
|
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 )
|
if( GetAttribute() == PAD_ATTRIB::PTH )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue