summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbulia byak <buliabyak@gmail.com>2007-03-11 22:30:36 +0000
committerbuliabyak <buliabyak@users.sourceforge.net>2007-03-11 22:30:36 +0000
commit1272b7e1b50e7f228c8476a623e94aad0838ef3a (patch)
treea97612a1bf855fb3fcb9acd6d95739c3dbcbfbf3 /src
parentdon't try to relativate hrefs here - it never works anyway, because we don't ... (diff)
downloadinkscape-1272b7e1b50e7f228c8476a623e94aad0838ef3a.tar.gz
inkscape-1272b7e1b50e7f228c8476a623e94aad0838ef3a.zip
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)
Diffstat (limited to 'src')
-rw-r--r--src/file.cpp3
1 files changed, 3 insertions, 0 deletions
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))