From 9743eec3abf257bef3fc54b834470617eaa72c66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20W=C5=82ostowski?= Date: Thu, 25 Apr 2019 12:17:30 +0200 Subject: [PATCH] SHAPE_ARC: fixed polyline conversion bug introduced in e312e2b286 Fixes: lp:1826278 * https://bugs.launchpad.net/kicad/+bug/1826278 Fixes: lp:1826270 * https://bugs.launchpad.net/kicad/+bug/1826270 (cherry picked from commit 5813164d159c12c920b969b58ef6318e211758a3) --- common/geometry/shape_arc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/geometry/shape_arc.cpp b/common/geometry/shape_arc.cpp index a3b7959a08..3c22a8c23f 100644 --- a/common/geometry/shape_arc.cpp +++ b/common/geometry/shape_arc.cpp @@ -259,7 +259,7 @@ const SHAPE_LINE_CHAIN SHAPE_ARC::ConvertToPolyline( double aAccuracy ) const double a = sa; if( n != 0 ) - sa += m_centralAngle * (double) i / (double) n; + a = m_centralAngle * (double) i / (double) n; double x = c.x + r * cos( a * M_PI / 180.0 ); double y = c.y + r * sin( a * M_PI / 180.0 );