summaryrefslogtreecommitdiffstats
path: root/src/object/sp-image.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/object/sp-image.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/object/sp-image.cpp')
-rw-r--r--src/object/sp-image.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/object/sp-image.cpp b/src/object/sp-image.cpp
index 45016bd45..6c3854cb4 100644
--- a/src/object/sp-image.cpp
+++ b/src/object/sp-image.cpp
@@ -345,7 +345,7 @@ void SPImage::update(SPCtx *ctx, unsigned int flags) {
}
this->dpi = svgdpi;
pixbuf = sp_image_repr_read_image(this->getRepr()->attribute("xlink:href"),
- this->getRepr()->attribute("sodipodi:absref"), doc->getBase(), svgdpi);
+ this->getRepr()->attribute("sodipodi:absref"), doc->getDocumentBase(), svgdpi);
if (pixbuf) {
#if defined(HAVE_LIBLCMS1) || defined(HAVE_LIBLCMS2)
@@ -557,7 +557,7 @@ gchar* SPImage::description() const {
svgdpi = atof(this->getRepr()->attribute("inkscape:svg-dpi"));
}
pb = sp_image_repr_read_image(this->getRepr()->attribute("xlink:href"),
- this->getRepr()->attribute("sodipodi:absref"), this->document->getBase(), svgdpi);
+ this->getRepr()->attribute("sodipodi:absref"), this->document->getDocumentBase(), svgdpi);
if (pb) {
ret = g_strdup_printf(_("%d &#215; %d: %s"),