diff options
| author | Tavmjong Bah <tavmjong@free.fr> | 2019-02-20 09:50:38 +0000 |
|---|---|---|
| committer | Tavmjong Bah <tavmjong@free.fr> | 2019-02-20 09:50:38 +0000 |
| commit | 774bee47ed685bd666173cb4d1664933217371c9 (patch) | |
| tree | 077955bb8b312b64b308fbd2ab1a32ee5989f605 /src/selection-chemistry.cpp | |
| parent | Fix Window centering LPEDialog (diff) | |
| download | inkscape-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/selection-chemistry.cpp')
| -rwxr-xr-x | src/selection-chemistry.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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); |
