From f088739690c43d4a75b75dba022e4f21366bfd91 Mon Sep 17 00:00:00 2001 From: Peter Moulder Date: Tue, 7 Apr 2009 08:25:43 +0000 Subject: Use the new sp_document_change_uri_and_hrefs function. The change to extension/system.cpp is a functional noop. The change to extension/implementation/script.cpp should fix importing of .ai files that contain images (or whatever ill2svg.pl creates png files for). The effect on any other scripts that create SVG files with relative hrefs is unknown. (bzr r7656) --- src/extension/implementation/script.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/extension/implementation/script.cpp') diff --git a/src/extension/implementation/script.cpp b/src/extension/implementation/script.cpp index 70b006d31..eabf147f6 100644 --- a/src/extension/implementation/script.cpp +++ b/src/extension/implementation/script.cpp @@ -581,7 +581,9 @@ Script::open(Inkscape::Extension::Input *module, } // data_read if (mydoc != NULL) { - sp_document_set_uri(mydoc, filenameArg); + g_free(mydoc->base); + mydoc->base = NULL; + sp_document_change_uri_and_hrefs(mydoc, filenameArg); } // make sure we don't leak file descriptors from g_file_open_tmp -- cgit v1.2.3