From 774bee47ed685bd666173cb4d1664933217371c9 Mon Sep 17 00:00:00 2001 From: Tavmjong Bah Date: Wed, 20 Feb 2019 10:50:38 +0100 Subject: Give more descriptive names to document file related variables and functions. Makes searching through code for them easier. --- src/selection-chemistry.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/selection-chemistry.cpp') diff --git a/src/selection-chemistry.cpp b/src/selection-chemistry.cpp index ed4c23bbc..e40743635 100755 --- a/src/selection-chemistry.cpp +++ b/src/selection-chemistry.cpp @@ -3634,7 +3634,7 @@ void ObjectSet::createBitmapCopy() // Create the filename. gchar *const basename = g_strdup_printf("%s-%s-%u.png", - doc->getName(), + doc->getDocumentName(), items_[0]->getRepr()->attribute("id"), current); // Imagemagick is known not to handle spaces in filenames, so we replace anything but letters, @@ -3643,8 +3643,8 @@ void ObjectSet::createBitmapCopy() // Build the complete path by adding document base dir, if set, otherwise home dir gchar *directory = nullptr; - if ( doc->getURI() ) { - directory = g_path_get_dirname( doc->getURI() ); + if ( doc->getDocumentURI() ) { + directory = g_path_get_dirname( doc->getDocumentURI() ); } if (directory == nullptr) { directory = Inkscape::IO::Resource::homedir_path(nullptr); -- cgit v1.2.3