summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: cb4442f)
raw | patch | inline | side by side (parent: cb4442f)
author | mental <mental@users.sourceforge.net> | |
Sun, 20 Jul 2008 18:18:00 +0000 (18:18 +0000) | ||
committer | mental <mental@users.sourceforge.net> | |
Sun, 20 Jul 2008 18:18:00 +0000 (18:18 +0000) |
src/svg/svg-path.cpp | patch | blob | history |
diff --git a/src/svg/svg-path.cpp b/src/svg/svg-path.cpp
index ade351402ee45ae501ff684b18b804ceee7c42ac..b280da07aa26b4d6dd120e8a144f5482e4940591 100644 (file)
--- a/src/svg/svg-path.cpp
+++ b/src/svg/svg-path.cpp
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],