diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2009-08-26 21:57:36 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2009-08-26 21:57:36 +0000 |
| commit | 652e8a65fb563f02f8613b98094056e62f9deaf8 (patch) | |
| tree | 88b768fb66887e5ed6da383f3abc705dc2284430 /src | |
| parent | fix page size (diff) | |
| download | inkscape-652e8a65fb563f02f8613b98094056e62f9deaf8.tar.gz inkscape-652e8a65fb563f02f8613b98094056e62f9deaf8.zip | |
fix bug #377958: don't write inkscape:path-effect to plain svg
(bzr r8540)
Diffstat (limited to 'src')
| -rw-r--r-- | src/sp-lpe-item.cpp | 12 | ||||
| -rw-r--r-- | src/sp-path.cpp | 16 |
2 files changed, 16 insertions, 12 deletions
diff --git a/src/sp-lpe-item.cpp b/src/sp-lpe-item.cpp index a27344ebc..e4d278e34 100644 --- a/src/sp-lpe-item.cpp +++ b/src/sp-lpe-item.cpp @@ -283,11 +283,13 @@ sp_lpe_item_write(SPObject *object, Inkscape::XML::Document *xml_doc, Inkscape:: { SPLPEItem *lpeitem = (SPLPEItem *) object; - if ( sp_lpe_item_has_path_effect(lpeitem) ) { - std::string href = patheffectlist_write_svg(*lpeitem->path_effect_list); - repr->setAttribute("inkscape:path-effect", href.c_str()); - } else { - repr->setAttribute("inkscape:path-effect", NULL); + if (flags & SP_OBJECT_WRITE_EXT) { + if ( sp_lpe_item_has_path_effect(lpeitem) ) { + std::string href = patheffectlist_write_svg(*lpeitem->path_effect_list); + repr->setAttribute("inkscape:path-effect", href.c_str()); + } else { + repr->setAttribute("inkscape:path-effect", NULL); + } } if (((SPObjectClass *)(parent_class))->write) { 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); |
