From e10e81cb20533c771e6e87dcbbdf5ac1e44745dc Mon Sep 17 00:00:00 2001 From: mental Date: Sun, 20 Jul 2008 18:18:00 +0000 Subject: [PATCH] omit stitch segments from serialized paths --- src/svg/svg-path.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/svg/svg-path.cpp b/src/svg/svg-path.cpp index ade351402..b280da07a 100644 --- a/src/svg/svg-path.cpp +++ b/src/svg/svg-path.cpp @@ -746,7 +746,10 @@ gchar *sp_svg_write_path(NArtBpath const *bpath) static void sp_svg_write_curve(Inkscape::SVG::PathString & str, Geom::Curve const * c) { if(Geom::LineSegment const *line_segment = dynamic_cast(c)) { - str.lineTo( (*line_segment)[1][0], (*line_segment)[1][1] ); + // don't serialize stitch segments + if (!dynamic_cast(c)) { + str.lineTo( (*line_segment)[1][0], (*line_segment)[1][1] ); + } } else if(Geom::QuadraticBezier const *quadratic_bezier = dynamic_cast(c)) { str.quadTo( (*quadratic_bezier)[1][0], (*quadratic_bezier)[1][1], -- 2.30.2