From 90bb2311a8e87439c8ae845fcf22755e40030d1d Mon Sep 17 00:00:00 2001 From: Alvin Penner Date: Sat, 2 Nov 2013 09:04:00 -0400 Subject: more conversions from radians to degrees for arcs (Bug 1239462) Fixed bugs: - https://launchpad.net/bugs/1239462 (bzr r12763) --- src/livarot/PathOutline.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/livarot/PathOutline.cpp') diff --git a/src/livarot/PathOutline.cpp b/src/livarot/PathOutline.cpp index 2cd359328..fbfaa98aa 100644 --- a/src/livarot/PathOutline.cpp +++ b/src/livarot/PathOutline.cpp @@ -930,7 +930,7 @@ void Path::TangentOnArcAt(double at, const Geom::Point &iS, PathDescrArcTo const Geom::Point const iE = fin.p; double const rx = fin.rx; double const ry = fin.ry; - double const angle = fin.angle; + double const angle = fin.angle*M_PI/180.0; bool const large = fin.large; bool const wise = fin.clockwise; @@ -1442,7 +1442,7 @@ Path::RecStdArcTo (outline_callback_data * data, double tol, double width, { Geom::Point tms(data->x1,data->y1),tme(data->x2,data->y2); ArcAngles (tms,tme, data->d.a.rx, - data->d.a.ry, data->d.a.angle, data->d.a.large, !data->d.a.clock, + data->d.a.ry, data->d.a.angle*M_PI/180.0, data->d.a.large, !data->d.a.clock, sang, eang); } double scal = eang - sang; -- cgit v1.2.3