summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e702814)
raw | patch | inline | side by side (parent: e702814)
author | pjrm <pjrm@users.sourceforge.net> | |
Tue, 7 Apr 2009 12:20:31 +0000 (12:20 +0000) | ||
committer | pjrm <pjrm@users.sourceforge.net> | |
Tue, 7 Apr 2009 12:20:31 +0000 (12:20 +0000) |
src/document.cpp | patch | blob | history |
diff --git a/src/document.cpp b/src/document.cpp
index 1b6e146941769a0948607c5ce0f34adf903e04ec..7c43b475c8d8c346d14da40098f029b23f22a076 100644 (file)
--- 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;