Fix pad shape for certain legacy circular pads
Fixes https://gitlab.com/kicad/code/kicad/-/issues/8615
This commit is contained in:
parent
45c7c7c350
commit
8f9800f760
|
@ -598,7 +598,8 @@ void PAD::TransformShapeWithClearanceToPolygon( SHAPE_POLY_SET& aCornerBuffer,
|
||||||
{
|
{
|
||||||
case PAD_SHAPE::CIRCLE:
|
case PAD_SHAPE::CIRCLE:
|
||||||
case PAD_SHAPE::OVAL:
|
case PAD_SHAPE::OVAL:
|
||||||
if( dx == dy )
|
// Note: dx == dy is not guaranted for circle pads in legacy boards
|
||||||
|
if( dx == dy || ( GetShape() == PAD_SHAPE::CIRCLE ) )
|
||||||
{
|
{
|
||||||
TransformCircleToPolygon( aCornerBuffer, padShapePos, dx + aClearanceValue, aError,
|
TransformCircleToPolygon( aCornerBuffer, padShapePos, dx + aClearanceValue, aError,
|
||||||
aErrorLoc );
|
aErrorLoc );
|
||||||
|
|
Loading…
Reference in New Issue