From: Jon A. Cruz Date: Sat, 2 Jan 2010 08:15:51 +0000 (-0800) Subject: Preserve metadata in plain SVG. Fixes bug #170967. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b2891d33fd63168ae5b124fc6ac3e781e9dd9283;p=inkscape.git Preserve metadata in plain SVG. Fixes bug #170967. --- diff --git a/src/sp-metadata.cpp b/src/sp-metadata.cpp index 920b7d64d..426810c7d 100644 --- a/src/sp-metadata.cpp +++ b/src/sp-metadata.cpp @@ -188,8 +188,7 @@ sp_metadata_write(SPObject *object, Inkscape::XML::Document *doc, Inkscape::XML: debug("0x%08x",(unsigned int)object); //SPMetadata *metadata = SP_METADATA(object); - // only create a repr when we're writing out an Inkscape SVG - if ( flags & SP_OBJECT_WRITE_EXT && repr != SP_OBJECT_REPR(object) ) { + if ( repr != SP_OBJECT_REPR(object) ) { if (repr) { repr->mergeFrom(SP_OBJECT_REPR (object), "id"); } else { @@ -197,8 +196,9 @@ sp_metadata_write(SPObject *object, Inkscape::XML::Document *doc, Inkscape::XML: } } - if (((SPObjectClass *) metadata_parent_class)->write) + if (((SPObjectClass *) metadata_parent_class)->write) { ((SPObjectClass *) metadata_parent_class)->write(object, doc, repr, flags); + } return repr; }