diff options
| author | Jeff Schiller <codedread@gmail.com> | 2008-08-23 06:13:23 +0000 |
|---|---|---|
| committer | jeff_schiller <jeff_schiller@users.sourceforge.net> | 2008-08-23 06:13:23 +0000 |
| commit | 7dba27edc91ec41f0ab7fa30aab75c31e97a1947 (patch) | |
| tree | ff29af2d0b0b053f4464a94eff8978bbdcf13dfe /src/sp-item-group.cpp | |
| parent | Hopefully fix for the recently experienced crashes when building with -O2. I ... (diff) | |
| download | inkscape-7dba27edc91ec41f0ab7fa30aab75c31e97a1947.tar.gz inkscape-7dba27edc91ec41f0ab7fa30aab75c31e97a1947.zip | |
Support for title and desc elements when serializing as Plain SVG.
(bzr r6709)
Diffstat (limited to 'src/sp-item-group.cpp')
| -rw-r--r-- | src/sp-item-group.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sp-item-group.cpp b/src/sp-item-group.cpp index 186b76663..4cea8aad5 100644 --- a/src/sp-item-group.cpp +++ b/src/sp-item-group.cpp @@ -45,6 +45,8 @@ #include "selection.h" #include "live_effects/lpeobject.h" #include "live_effects/lpeobject-reference.h" +#include "sp-title.h" +#include "sp-desc.h" static void sp_group_class_init (SPGroupClass *klass); static void sp_group_init (SPGroup *group); @@ -233,6 +235,7 @@ sp_group_write (SPObject *object, Inkscape::XML::Document *xml_doc, Inkscape::XM } l = NULL; for (child = sp_object_first_child(object); child != NULL; child = SP_OBJECT_NEXT(child) ) { + if (SP_IS_TITLE(child) || SP_IS_DESC(child)) continue; crepr = child->updateRepr(xml_doc, NULL, flags); if (crepr) l = g_slist_prepend (l, crepr); } @@ -243,6 +246,7 @@ sp_group_write (SPObject *object, Inkscape::XML::Document *xml_doc, Inkscape::XM } } else { for (child = sp_object_first_child(object) ; child != NULL; child = SP_OBJECT_NEXT(child) ) { + if (SP_IS_TITLE(child) || SP_IS_DESC(child)) continue; child->updateRepr(flags); } } |
