diff options
| -rw-r--r-- | src/extension/internal/odf.cpp | 5 | ||||
| -rw-r--r-- | src/extension/internal/odf.h | 2 |
2 files changed, 1 insertions, 6 deletions
diff --git a/src/extension/internal/odf.cpp b/src/extension/internal/odf.cpp index db18dd2ca..091be8c7d 100644 --- a/src/extension/internal/odf.cpp +++ b/src/extension/internal/odf.cpp @@ -1079,8 +1079,7 @@ void OdfOutput::preprocess(ZipFile &zf, Inkscape::XML::Node *node) Glib::ustring comment = "old name was: "; comment.append(oldName); Inkscape::URI oldUri(oldName.c_str()); - //# if relative to the documentURI, get proper path - std::string pathName = documentUri.getFullPath(oldUri.getFullPath("")); + std::string pathName = oldUri.toNativeFilename(); ZipEntry *ze = zf.addFile(pathName, comment); if (ze) { @@ -2096,8 +2095,6 @@ void OdfOutput::save(Inkscape::Extension::Output */*mod*/, SPDocument *doc, gcha { reset(); - documentUri = Inkscape::URI(filename); - ZipFile zf; preprocess(zf, doc->rroot); diff --git a/src/extension/internal/odf.h b/src/extension/internal/odf.h index f8712d5eb..9a1cfadf0 100644 --- a/src/extension/internal/odf.h +++ b/src/extension/internal/odf.h @@ -276,8 +276,6 @@ public: private: - Inkscape::URI documentUri; - void reset(); //cc or dc metadata name/value pairs |
