From: buliabyak Date: Sun, 11 Mar 2007 22:30:36 +0000 (+0000) Subject: add fixupHrefs right after import, so that images get correct relative xlink:href... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=37c7339841101a77b5242d7af036ef4fe3178b72;p=inkscape.git add fixupHrefs right after import, so that images get correct relative xlink:href at once and not only after save as before (fixes 1267081) --- diff --git a/src/file.cpp b/src/file.cpp index c1d035545..ba68b171d 100644 --- a/src/file.cpp +++ b/src/file.cpp @@ -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))