diff options
| author | bulia byak <buliabyak@gmail.com> | 2007-03-11 22:30:36 +0000 |
|---|---|---|
| committer | buliabyak <buliabyak@users.sourceforge.net> | 2007-03-11 22:30:36 +0000 |
| commit | 1272b7e1b50e7f228c8476a623e94aad0838ef3a (patch) | |
| tree | a97612a1bf855fb3fcb9acd6d95739c3dbcbfbf3 /src | |
| parent | don't try to relativate hrefs here - it never works anyway, because we don't ... (diff) | |
| download | inkscape-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.cpp | 3 |
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)) |
