summaryrefslogtreecommitdiffstats
path: root/src/inkscape.cpp
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2019-02-20 09:50:38 +0000
committerTavmjong Bah <tavmjong@free.fr>2019-02-20 09:50:38 +0000
commit774bee47ed685bd666173cb4d1664933217371c9 (patch)
tree077955bb8b312b64b308fbd2ab1a32ee5989f605 /src/inkscape.cpp
parentFix Window centering LPEDialog (diff)
downloadinkscape-774bee47ed685bd666173cb4d1664933217371c9.tar.gz
inkscape-774bee47ed685bd666173cb4d1664933217371c9.zip
Give more descriptive names to document file related variables and functions.
Makes searching through code for them easier.
Diffstat (limited to 'src/inkscape.cpp')
-rw-r--r--src/inkscape.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/inkscape.cpp b/src/inkscape.cpp
index 53536b878..a59f518a0 100644
--- a/src/inkscape.cpp
+++ b/src/inkscape.cpp
@@ -695,7 +695,7 @@ Application::crash_handler (int /*signum*/)
/* originally, the document name was retrieved from
* the sodipod:docname attribute */
- docname = doc->getName();
+ docname = doc->getDocumentName();
if (docname) {
/* Removes an emergency save suffix if present: /(.*)\.[0-9_]*\.[0-9_]*\.[~\.]*$/\1/ */
const char* d0 = strrchr ((char*)docname, '.');
@@ -722,7 +722,7 @@ Application::crash_handler (int /*signum*/)
// Find a location
const char* locations[] = {
- doc->getBase(),
+ doc->getDocumentBase(),
g_get_home_dir(),
g_get_tmp_dir(),
curdir,
@@ -746,7 +746,7 @@ Application::crash_handler (int /*signum*/)
savednames.push_back(g_strdup (c));
fclose (file);
} else {
- failednames.push_back((doc->getName()) ? g_strdup(doc->getName()) : g_strdup (_("Untitled document")));
+ failednames.push_back((doc->getDocumentName()) ? g_strdup(doc->getDocumentName()) : g_strdup (_("Untitled document")));
}
count++;
}