From 4aa096a5a8537b6e28c4502d817e546b8b7fdd9b Mon Sep 17 00:00:00 2001 From: Kris De Gussem Date: Sun, 27 Oct 2013 20:57:50 +0100 Subject: "fix" some "unused parameter" warnings (bzr r12736) --- src/livarot/ShapeMisc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/livarot/ShapeMisc.cpp') diff --git a/src/livarot/ShapeMisc.cpp b/src/livarot/ShapeMisc.cpp index 6fd40790f..e40915cba 100644 --- a/src/livarot/ShapeMisc.cpp +++ b/src/livarot/ShapeMisc.cpp @@ -327,7 +327,7 @@ Shape::ConvertToForme (Path * dest, int nbP, Path * *orig, bool splitWhenForced) MakeSweepDestData (false); } void -Shape::ConvertToFormeNested (Path * dest, int nbP, Path * *orig, int wildPath,int &nbNest,int *&nesting,int *&contStart,bool splitWhenForced) +Shape::ConvertToFormeNested (Path * dest, int nbP, Path * *orig, int /*wildPath*/,int &nbNest,int *&nesting,int *&contStart,bool splitWhenForced) { nesting=NULL; contStart=NULL; -- cgit v1.2.3 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/ShapeMisc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/livarot/ShapeMisc.cpp') diff --git a/src/livarot/ShapeMisc.cpp b/src/livarot/ShapeMisc.cpp index e40915cba..e5a98f0cf 100644 --- a/src/livarot/ShapeMisc.cpp +++ b/src/livarot/ShapeMisc.cpp @@ -1056,7 +1056,7 @@ Shape::ReFormeArcTo (int bord, int /*curBord*/, Path * dest, Path * from) PathDescrArcTo* nData = dynamic_cast(from->descr_cmd[nPiece]); bool nLarge = nData->large; bool nClockwise = nData->clockwise; - Path::ArcAngles (from->PrevPoint (nPiece - 1), nData->p,nData->rx,nData->ry,nData->angle, nLarge, nClockwise, sang, eang); + Path::ArcAngles (from->PrevPoint (nPiece - 1), nData->p,nData->rx,nData->ry,nData->angle*M_PI/180.0, nLarge, nClockwise, sang, eang); if (nClockwise) { if (sang < eang) -- cgit v1.2.3