diff options
Diffstat (limited to 'src/io/file-export-cmd.cpp')
| -rw-r--r-- | src/io/file-export-cmd.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/io/file-export-cmd.cpp b/src/io/file-export-cmd.cpp index d9527f89a..03b738197 100644 --- a/src/io/file-export-cmd.cpp +++ b/src/io/file-export-cmd.cpp @@ -415,8 +415,8 @@ InkFileExportCmd::do_export_png(SPDocument *doc, std::string filename_in) if (filename_from_hint) { //Make relative paths go from the document location, if possible: - if (!Glib::path_is_absolute(filename_out) && doc->getURI()) { - std::string dirname = Glib::path_get_dirname(doc->getURI()); + if (!Glib::path_is_absolute(filename_out) && doc->getDocumentURI()) { + std::string dirname = Glib::path_get_dirname(doc->getDocumentURI()); if (!dirname.empty()) { filename_out = Glib::build_filename(dirname, filename_out); } |
