VECTOR2D CalcArcCenter( VECTOR2D& aStart, VECTOR2D& aEnd, EDA_ANGLE& aAngle ):

fix broken calculation of arc center for arcs > 180 degrees.
Fixes #11708
https://gitlab.com/kicad/code/kicad/issues/11708
This commit is contained in:
jean-pierre charras 2022-07-25 18:18:34 +02:00
parent 993c446fdf
commit 130723ebac
1 changed files with 1 additions and 1 deletions

View File

@ -314,7 +314,7 @@ const VECTOR2D CalcArcCenter( const VECTOR2D& aStart, const VECTOR2D& aEnd,
if( angle > ANGLE_180 )
{
std::swap( start, end );
angle = ANGLE_180 - angle;
angle = ANGLE_360 - angle;
}
double chord = ( start - end ).EuclideanNorm();