Code

Add CMakeLists for the filters directory.
[inkscape.git] / src / svg / svg-path.cpp
index 334ba0c1a005c6ab67d6dbe4f3c0dce4820900e0..bbf1589b43b3baec0f1105932c81deb8d1d86938 100644 (file)
@@ -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
@@ -68,7 +69,8 @@ Geom::PathVector sp_svg_read_pathv(char const * str)
     }
     catch (Geom::SVGPathParseError e) {
         generator.finish();
-        g_warning("Malformed SVG path, truncated path up to where error was found.\n Input path=\"%s\"\n Parsed path=\"%s\"", str, sp_svg_write_path(pathv));
+        // This warning is extremely annoying when testing
+        //g_warning("Malformed SVG path, truncated path up to where error was found.\n Input path=\"%s\"\n Parsed path=\"%s\"", str, sp_svg_write_path(pathv));
     }
 
     return pathv;
@@ -92,7 +94,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() );
     }