diff options
| author | Alvin Penner <penner@vaxxine.com> | 2013-10-31 19:55:53 +0000 |
|---|---|---|
| committer | apenner <penner@vaxxine.com> | 2013-10-31 19:55:53 +0000 |
| commit | c3ced8096db500874adff64150520c4bb69bd5eb (patch) | |
| tree | 5fbb988e05dde596b1e51a9cb2beb270f07d239c /src/livarot/PathCutting.cpp | |
| parent | Remove warning on bbox and allow empty bound selection to clear existing sele... (diff) | |
| download | inkscape-c3ced8096db500874adff64150520c4bb69bd5eb.tar.gz inkscape-c3ced8096db500874adff64150520c4bb69bd5eb.zip | |
conversions from radians to degrees for arcs (Bug 324117)
Fixed bugs:
- https://launchpad.net/bugs/324117
(bzr r12756)
Diffstat (limited to '')
| -rw-r--r-- | src/livarot/PathCutting.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/livarot/PathCutting.cpp b/src/livarot/PathCutting.cpp index 3ce907bf3..1ebac7644 100644 --- a/src/livarot/PathCutting.cpp +++ b/src/livarot/PathCutting.cpp @@ -303,7 +303,7 @@ Path::MakePathVector() { /* TODO: add testcase for this descr_arcto case */ PathDescrArcTo *nData = dynamic_cast<PathDescrArcTo *>(descr_cmd[i]); - currentpath->appendNew<Geom::SVGEllipticalArc>( nData->rx, nData->ry, nData->angle, nData->large, !nData->clockwise, nData->p ); + currentpath->appendNew<Geom::SVGEllipticalArc>( nData->rx, nData->ry, nData->angle*M_PI/180.0, nData->large, !nData->clockwise, nData->p ); lastP = nData->p; } break; @@ -398,7 +398,7 @@ void Path::AddCurve(Geom::Curve const &c) else if(Geom::SVGEllipticalArc const *svg_elliptical_arc = dynamic_cast<Geom::SVGEllipticalArc const *>(&c)) { ArcTo( svg_elliptical_arc->finalPoint(), svg_elliptical_arc->ray(Geom::X), svg_elliptical_arc->ray(Geom::Y), - svg_elliptical_arc->rotationAngle(), /// \todo check that this parameter is in radians (rotation_angle returns the angle in radians!) + svg_elliptical_arc->rotationAngle()*180.0/M_PI, // convert from radians to degrees svg_elliptical_arc->largeArc(), !svg_elliptical_arc->sweep() ); } else { //this case handles sbasis as well as all other curve types |
