Code

Added missing (and very important) file.
[inkscape.git] / src / extension / implementation / script.cpp
index 70b006d310265ba5afd69fd274e2b0a69bc0e7a2..eabf147f64980afa2acbb18027dc682c961da6a3 100644 (file)
@@ -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