From 1272b7e1b50e7f228c8476a623e94aad0838ef3a Mon Sep 17 00:00:00 2001 From: bulia byak Date: Sun, 11 Mar 2007 22:30:36 +0000 Subject: add fixupHrefs right after import, so that images get correct relative xlink:href at once and not only after save as before (fixes 1267081) (bzr r2609) --- src/file.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/file.cpp') 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)) -- cgit v1.2.3