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
This commit is contained in:
Tomasz Włostowski 2019-04-25 12:17:30 +02:00
parent 1426a4f3cf
commit 5813164d15
1 changed files with 1 additions and 1 deletions

View File

@ -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 );