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 5813164d15
)
This commit is contained in:
parent
b3ad1dc26e
commit
9743eec3ab
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue