fix buf in PLOTTER::sketchOval()

(incorrect parameters to plot arcs).
Fixes #15816
https://gitlab.com/kicad/code/kicad/-/issues/15816
This commit is contained in:
jean-pierre charras 2023-10-03 19:39:21 +02:00
parent 979942e31a
commit 23e064aaaf
1 changed files with 4 additions and 4 deletions

View File

@ -538,16 +538,16 @@ void PLOTTER::sketchOval( const VECTOR2I& aPos, const VECTOR2I& aSize, const EDA
corners[ii] += aPos;
}
// Gen shape:
// Gen shape (2 lines and 2 180 deg arcs):
MoveTo( corners[0] );
FinishTo( corners[1] );
Arc( corners[2], orient + ANGLE_180, orient + ANGLE_360, radius, FILL_T::NO_FILL );
Arc( corners[2], -orient, ANGLE_180, radius, FILL_T::NO_FILL );
MoveTo( corners[3] );
FinishTo( corners[4] );
Arc( corners[5], orient, orient + ANGLE_180, radius, FILL_T::NO_FILL );
Arc( corners[5], -orient, -ANGLE_180, radius, FILL_T::NO_FILL );
}