Code

add fixupHrefs right after import, so that images get correct relative xlink:href...
authorbuliabyak <buliabyak@users.sourceforge.net>
Sun, 11 Mar 2007 22:30:36 +0000 (22:30 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Sun, 11 Mar 2007 22:30:36 +0000 (22:30 +0000)
src/file.cpp

index c1d03554566a1bd244d71d3e042515d68e53716e..ba68b171d98fba0c1b70eb360c0a35a6bbbce916 100644 (file)
@@ -755,6 +755,9 @@ file_import(SPDocument *in_doc, const Glib::ustring &uri,
         // move imported defs to our document's defs
         SPObject *in_defs = SP_DOCUMENT_DEFS(in_doc);
         SPObject *defs = SP_DOCUMENT_DEFS(doc);
+
+        Inkscape::IO::fixupHrefs(doc, in_doc->base, true);
+
         Inkscape::XML::Node *last_def = SP_OBJECT_REPR(in_defs)->lastChild();
         for (SPObject *child = sp_object_first_child(defs);
              child != NULL; child = SP_OBJECT_NEXT(child))