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/object/sp-style-elem.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/object/sp-style-elem.cpp')
| -rw-r--r-- | src/object/sp-style-elem.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/object/sp-style-elem.cpp b/src/object/sp-style-elem.cpp index a307b110f..dae679bb4 100644 --- a/src/object/sp-style-elem.cpp +++ b/src/object/sp-style-elem.cpp @@ -192,14 +192,14 @@ import_style_cb (CRDocHandler *a_handler, std::cerr << "import_style_cb: No document style sheet!" << std::endl; return; } - if (!document->getURI()) { + if (!document->getDocumentURI()) { std::cerr << "import_style_cb: Document URI is NULL" << std::endl; return; } // Get file Glib::ustring import_file = - Inkscape::IO::Resource::get_filename (document->getURI(), a_uri->stryng->str); + Inkscape::IO::Resource::get_filename (document->getDocumentURI(), a_uri->stryng->str); // Parse file CRStyleSheet *stylesheet = cr_stylesheet_new (nullptr); @@ -332,7 +332,7 @@ end_font_face_cb(CRDocHandler *a_handler) std::cerr << "end_font_face_cb: No document!" << std::endl; return; } - if (!document->getURI()) { + if (!document->getDocumentURI()) { std::cerr << "end_font_face_cb: Document URI is NULL" << std::endl; return; } @@ -357,7 +357,7 @@ end_font_face_cb(CRDocHandler *a_handler) // Get file Glib::ustring ttf_file = - Inkscape::IO::Resource::get_filename (document->getURI(), value); + Inkscape::IO::Resource::get_filename (document->getDocumentURI(), value); if (!ttf_file.empty()) { font_factory *factory = font_factory::Default(); |
