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/file-update.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/file-update.cpp') diff --git a/src/file-update.cpp b/src/file-update.cpp index 764ba8b03..22dd022bc 100644 --- a/src/file-update.cpp +++ b/src/file-update.cpp @@ -253,7 +253,7 @@ bool sp_file_save_backup( Glib::ustring uri ) { void sp_file_convert_dpi(SPDocument *doc) { Inkscape::Preferences *prefs = Inkscape::Preferences::get(); - Glib::ustring uri = doc->getURI(); + Glib::ustring uri = doc->getDocumentURI(); SPRoot *root = doc->getRoot(); // See if we need to offer the user a fix for the 90->96 px per inch change. @@ -335,7 +335,7 @@ void sp_file_convert_dpi(SPDocument *doc) scale_dialog.set_border_width(10); scale_dialog.set_resizable(false); Gtk::Label explanation; - explanation.set_markup(Glib::ustring("") + doc->getName() + "\n" + + explanation.set_markup(Glib::ustring("") + doc->getDocumentName() + "\n" + _("was created in an older version of Inkscape (90 DPI) and we need " "to make it compatible with newer versions (96 DPI). Tell us about this file:\n")); explanation.set_line_wrap(true); -- cgit v1.2.3