diff options
| author | MenTaLguY <mental@rydia.net> | 2008-07-20 18:18:00 +0000 |
|---|---|---|
| committer | mental <mental@users.sourceforge.net> | 2008-07-20 18:18:00 +0000 |
| commit | a19c68a25f06b2c313d16553f3fccef993002a2b (patch) | |
| tree | 24d3e239ea5bd86a615564786b7fa85f3c870371 /src | |
| parent | fix stupid crash, make get_item const (diff) | |
| download | inkscape-a19c68a25f06b2c313d16553f3fccef993002a2b.tar.gz inkscape-a19c68a25f06b2c313d16553f3fccef993002a2b.zip | |
omit stitch segments from serialized paths
(bzr r6370)
Diffstat (limited to 'src')
| -rw-r--r-- | src/svg/svg-path.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
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<Geom::LineSegment const *>(c)) { - str.lineTo( (*line_segment)[1][0], (*line_segment)[1][1] ); + // don't serialize stitch segments + if (!dynamic_cast<Geom::Path::StitchSegment const *>(c)) { + str.lineTo( (*line_segment)[1][0], (*line_segment)[1][1] ); + } } else if(Geom::QuadraticBezier const *quadratic_bezier = dynamic_cast<Geom::QuadraticBezier const *>(c)) { str.quadTo( (*quadratic_bezier)[1][0], (*quadratic_bezier)[1][1], |
