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-flowregion.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-flowregion.cpp')
| -rw-r--r-- | src/sp-flowregion.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sp-flowregion.cpp b/src/sp-flowregion.cpp index 490407f81..3b45951b8 100644 --- a/src/sp-flowregion.cpp +++ b/src/sp-flowregion.cpp @@ -15,6 +15,8 @@ #include "sp-use.h" #include "style.h" #include "document.h" +#include "sp-title.h" +#include "sp-desc.h" #include "sp-flowregion.h" @@ -240,6 +242,7 @@ sp_flowregion_write (SPObject *object, Inkscape::XML::Document *xml_doc, Inkscap GSList *l = NULL; for ( SPObject *child = sp_object_first_child(object) ; child != NULL; child = SP_OBJECT_NEXT(child) ) { + if (SP_IS_TITLE(child) || SP_IS_DESC(child)) continue; Inkscape::XML::Node *crepr = child->updateRepr(xml_doc, NULL, flags); if (crepr) l = g_slist_prepend(l, crepr); } @@ -252,6 +255,7 @@ sp_flowregion_write (SPObject *object, Inkscape::XML::Document *xml_doc, Inkscap } else { for ( SPObject *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); } } |
