diff --git a/common/plotters/PDF_plotter.cpp b/common/plotters/PDF_plotter.cpp index 0424a37108..d01ffeafe5 100644 --- a/common/plotters/PDF_plotter.cpp +++ b/common/plotters/PDF_plotter.cpp @@ -288,21 +288,21 @@ void PDF_PLOTTER::Arc( const VECTOR2I& aCenter, const EDA_ANGLE& aStartAngle, SetCurrentLineWidth( aWidth ); // Usual trig arc plotting routine... - start.x = aCenter.x + KiROUND( aRadius * -startAngle.Cos() ); - start.y = aCenter.y + KiROUND( aRadius * -startAngle.Sin() ); + start.x = aCenter.x + KiROUND( aRadius * (-startAngle).Cos() ); + start.y = aCenter.y + KiROUND( aRadius * (-startAngle).Sin() ); VECTOR2D pos_dev = userToDeviceCoordinates( start ); fprintf( workFile, "%g %g m ", pos_dev.x, pos_dev.y ); for( EDA_ANGLE ii = startAngle + delta; ii < endAngle; ii += delta ) { - end.x = aCenter.x + KiROUND( aRadius * -ii.Cos() ); - end.y = aCenter.y + KiROUND( aRadius * -ii.Sin() ); + end.x = aCenter.x + KiROUND( aRadius * (-ii).Cos() ); + end.y = aCenter.y + KiROUND( aRadius * (-ii).Sin() ); pos_dev = userToDeviceCoordinates( end ); fprintf( workFile, "%g %g l ", pos_dev.x, pos_dev.y ); } - end.x = aCenter.x + KiROUND( aRadius * -endAngle.Cos() ); - end.y = aCenter.y + KiROUND( aRadius * -endAngle.Sin() ); + end.x = aCenter.x + KiROUND( aRadius * (-endAngle).Cos() ); + end.y = aCenter.y + KiROUND( aRadius * (-endAngle).Sin() ); pos_dev = userToDeviceCoordinates( end ); fprintf( workFile, "%g %g l ", pos_dev.x, pos_dev.y );