summaryrefslogtreecommitdiffstats
path: root/src/sp-image.cpp
diff options
context:
space:
mode:
authorMenTaLguY <mental@rydia.net>2007-02-26 08:05:15 +0000
committermental <mental@users.sourceforge.net>2007-02-26 08:05:15 +0000
commit2ba9cef957b7251d6f929ba9826c9c266839301a (patch)
tree6d49ec90596c92af6c23d4481692aa7d96928c9e /src/sp-image.cpp
parentCheck for GGO_UNHINTED not being defined (diff)
downloadinkscape-2ba9cef957b7251d6f929ba9826c9c266839301a.tar.gz
inkscape-2ba9cef957b7251d6f929ba9826c9c266839301a.zip
get rid of sp_repr_document wrapper function
(bzr r2445)
Diffstat (limited to 'src/sp-image.cpp')
-rw-r--r--src/sp-image.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sp-image.cpp b/src/sp-image.cpp
index 06371f232..5f8b15718 100644
--- a/src/sp-image.cpp
+++ b/src/sp-image.cpp
@@ -1053,7 +1053,7 @@ sp_image_repr_read_image (Inkscape::XML::Node * repr)
if (pixbuf != NULL) return pixbuf;
} else if (!g_path_is_absolute (filename)) {
/* try to load from relative pos */
- docbase = sp_repr_document_root (sp_repr_document (repr))->attribute("sodipodi:docbase");
+ docbase = sp_repr_document_root (repr->document()->attribute("sodipodi:docbase");
if (!docbase) docbase = ".";
fullname = g_build_filename(docbase, filename, NULL);
pixbuf = Inkscape::IO::pixbuf_new_from_file( fullname, NULL );