From 74c15147eaa2178dbea38821724e094e5924f3d5 Mon Sep 17 00:00:00 2001 From: johanengelen Date: Sun, 3 Aug 2008 17:57:02 +0000 Subject: [PATCH] fix arc conversion to livarot --- src/livarot/PathCutting.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/livarot/PathCutting.cpp b/src/livarot/PathCutting.cpp index e84f85e0a..3a7bd71ad 100644 --- a/src/livarot/PathCutting.cpp +++ b/src/livarot/PathCutting.cpp @@ -302,7 +302,7 @@ Path::MakePathVector() { /* TODO: add testcase for this descr_arcto case */ PathDescrArcTo *nData = dynamic_cast(descr_cmd[i]); - currentpath->appendNew( nData->rx, nData->ry, nData->angle, nData->large, nData->clockwise, to_2geom(nData->p) ); + currentpath->appendNew( nData->rx, nData->ry, nData->angle, nData->large, !nData->clockwise, to_2geom(nData->p) ); lastP = nData->p; } break; @@ -400,7 +400,7 @@ void Path::AddCurve(Geom::Curve const &c) ArcTo( from_2geom(svg_elliptical_arc->finalPoint()), svg_elliptical_arc->ray(0), svg_elliptical_arc->ray(1), svg_elliptical_arc->rotation_angle(), - svg_elliptical_arc->large_arc_flag(), svg_elliptical_arc->sweep_flag() ); + svg_elliptical_arc->large_arc_flag(), !svg_elliptical_arc->sweep_flag() ); } else { //this case handles sbasis as well as all other curve types Geom::Path sbasis_path = Geom::cubicbezierpath_from_sbasis(c.toSBasis(), 0.1); -- 2.30.2