summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 04977e9)
raw | patch | inline | side by side (parent: 04977e9)
author | Jon A. Cruz <jon@joncruz.org> | |
Sat, 2 Jan 2010 08:15:51 +0000 (00:15 -0800) | ||
committer | Jon A. Cruz <jon@joncruz.org> | |
Sat, 2 Jan 2010 08:15:51 +0000 (00:15 -0800) |
src/sp-metadata.cpp | patch | blob | history |
diff --git a/src/sp-metadata.cpp b/src/sp-metadata.cpp
index 920b7d64dbb5458a1ef4d8f731c6748d3175bd07..426810c7d9b607c275c904d272e56895641bac5d 100644 (file)
--- 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;
}