From a229e519623b8df12afc5569a4756998f16fef31 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Mon, 29 Jun 2020 09:57:36 +0200 Subject: [PATCH] Pcbnew: fix incorrect clearance of oval pads in zone fill. (The clearance value was only half of the correct value) --- pcbnew/board_items_to_polygon_shape_transform.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/board_items_to_polygon_shape_transform.cpp b/pcbnew/board_items_to_polygon_shape_transform.cpp index e3f5efb49e..cb3c355fa4 100644 --- a/pcbnew/board_items_to_polygon_shape_transform.cpp +++ b/pcbnew/board_items_to_polygon_shape_transform.cpp @@ -540,7 +540,7 @@ void D_PAD::TransformShapeWithClearanceToPolygon( SHAPE_POLY_SET& aCornerBuffer, RotatePoint( &delta, angle ); TransformOvalToPolygon( aCornerBuffer, padShapePos - delta, padShapePos + delta, - half_width * 2 + aClearanceValue, aError ); + ( half_width + aClearanceValue ) * 2, aError ); } break;