From: pjrm Date: Tue, 7 Apr 2009 12:20:31 +0000 (+0000) Subject: oops, fix a bug in that last commit (revealed by eps import; I don't think this bug... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=067a8627bf527a468380bdfac4ebe696ee419e7a;p=inkscape.git oops, fix a bug in that last commit (revealed by eps import; I don't think this bug occurred with skencil import). --- diff --git a/src/document.cpp b/src/document.cpp index 1b6e14694..7c43b475c 100644 --- a/src/document.cpp +++ b/src/document.cpp @@ -626,8 +626,8 @@ do_change_uri(SPDocument *const document, gchar const *const filename, bool cons new_uri = g_strdup(filename); #endif - new_base = g_path_get_dirname(document->uri); - new_name = g_path_get_basename(document->uri); + new_base = g_path_get_dirname(new_uri); + new_name = g_path_get_basename(new_uri); } else { new_uri = g_strdup_printf(_("Unnamed document %d"), ++doc_count); new_base = NULL;