From: mental Date: Sun, 20 Jul 2008 18:18:00 +0000 (+0000) Subject: omit stitch segments from serialized paths X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e10e81cb20533c771e6e87dcbbdf5ac1e44745dc;p=inkscape.git omit stitch segments from serialized paths --- 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],