summaryrefslogtreecommitdiffstats
path: root/src/svg
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2008-10-28 04:45:31 +0000
committerTed Gould <ted@canonical.com>2008-10-28 04:45:31 +0000
commitdc743aafd8b8c2d9c4e081fc937a94a26c055203 (patch)
tree98748c7465ac4ce06d1cbc359f767bcf0422cc85 /src/svg
parentFrom trunk (diff)
downloadinkscape-dc743aafd8b8c2d9c4e081fc937a94a26c055203.tar.gz
inkscape-dc743aafd8b8c2d9c4e081fc937a94a26c055203.zip
Merge from trunk
(bzr r6886)
Diffstat (limited to 'src/svg')
-rw-r--r--src/svg/path-string.h5
-rw-r--r--src/svg/svg-path.cpp3
2 files changed, 6 insertions, 2 deletions
diff --git a/src/svg/path-string.h b/src/svg/path-string.h
index d09d43b9d..01389a3d0 100644
--- a/src/svg/path-string.h
+++ b/src/svg/path-string.h
@@ -1,4 +1,4 @@
-/*
+/**
* Inkscape::SVG::PathString - builder for SVG path strings
*
* Copyright 2007 MenTaLguY <mental@rydia.net>
@@ -113,6 +113,9 @@ public:
return *this;
}
+ /**
+ * \param rot the angle in degrees
+ */
PathString &arcTo(NR::Coord rx, NR::Coord ry, NR::Coord rot,
bool large_arc, bool sweep,
NR::Point p)
diff --git a/src/svg/svg-path.cpp b/src/svg/svg-path.cpp
index 334ba0c1a..88e340bd4 100644
--- a/src/svg/svg-path.cpp
+++ b/src/svg/svg-path.cpp
@@ -46,6 +46,7 @@
#include <2geom/svg-path.h>
#include <2geom/svg-path-parser.h>
#include <2geom/exception.h>
+#include <2geom/angle.h>
/*
* Parses the path in str. When an error is found in the pathstring, this method
@@ -92,7 +93,7 @@ static void sp_svg_write_curve(Inkscape::SVG::PathString & str, Geom::Curve cons
}
else if(Geom::SVGEllipticalArc const *svg_elliptical_arc = dynamic_cast<Geom::SVGEllipticalArc const *>(c)) {
str.arcTo( svg_elliptical_arc->ray(0), svg_elliptical_arc->ray(1),
- svg_elliptical_arc->rotation_angle(),
+ Geom::rad_to_deg(svg_elliptical_arc->rotation_angle()),
svg_elliptical_arc->large_arc_flag(), svg_elliptical_arc->sweep_flag(),
svg_elliptical_arc->finalPoint() );
}