diff --git a/pcbnew/pad.cpp b/pcbnew/pad.cpp index 8d629130c7..fecddf2b6b 100644 --- a/pcbnew/pad.cpp +++ b/pcbnew/pad.cpp @@ -1825,7 +1825,16 @@ static struct PAD_DESC PROPERTY_DISPLAY::PT_SIZE ), groupPad ); propMgr.AddProperty( new PROPERTY( _HKI( "Size Y" ), &PAD::SetSizeY, &PAD::GetSizeY, - PROPERTY_DISPLAY::PT_SIZE ), groupPad ); + PROPERTY_DISPLAY::PT_SIZE ), groupPad ) + .SetAvailableFunc( + [=]( INSPECTABLE* aItem ) -> bool + { + // Circle pads have no usable y-size + if( PAD* pad = dynamic_cast( aItem ) ) + return pad->GetShape() != PAD_SHAPE::CIRCLE; + + return true; + } ); auto roundRadiusRatio = new PROPERTY( _HKI( "Round Radius Ratio" ), &PAD::SetRoundRectRadiusRatio, &PAD::GetRoundRectRadiusRatio );