From 7dba27edc91ec41f0ab7fa30aab75c31e97a1947 Mon Sep 17 00:00:00 2001 From: Jeff Schiller Date: Sat, 23 Aug 2008 06:13:23 +0000 Subject: Support for title and desc elements when serializing as Plain SVG. (bzr r6709) --- src/sp-flowregion.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/sp-flowregion.cpp') 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); } } -- cgit v1.2.3