From 652e8a65fb563f02f8613b98094056e62f9deaf8 Mon Sep 17 00:00:00 2001 From: "Johan B. C. Engelen" Date: Wed, 26 Aug 2009 21:57:36 +0000 Subject: fix bug #377958: don't write inkscape:path-effect to plain svg (bzr r8540) --- src/sp-path.cpp | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'src/sp-path.cpp') diff --git a/src/sp-path.cpp b/src/sp-path.cpp index 04ad386d9..a2f0f3169 100644 --- a/src/sp-path.cpp +++ b/src/sp-path.cpp @@ -328,13 +328,15 @@ sp_path_write(SPObject *object, Inkscape::XML::Document *xml_doc, Inkscape::XML: repr->setAttribute("d", NULL); } - SPPath *path = (SPPath *) object; - if ( path->original_curve != NULL ) { - gchar *str = sp_svg_write_path(path->original_curve->get_pathvector()); - repr->setAttribute("inkscape:original-d", str); - g_free(str); - } else { - repr->setAttribute("inkscape:original-d", NULL); + if (flags & SP_OBJECT_WRITE_EXT) { + SPPath *path = (SPPath *) object; + if ( path->original_curve != NULL ) { + gchar *str = sp_svg_write_path(path->original_curve->get_pathvector()); + repr->setAttribute("inkscape:original-d", str); + g_free(str); + } else { + repr->setAttribute("inkscape:original-d", NULL); + } } SP_PATH(shape)->connEndPair.writeRepr(repr); -- cgit v1.2.3