summaryrefslogtreecommitdiffstats
path: root/src/document.cpp
diff options
context:
space:
mode:
authorMenTaLguY <mental@rydia.net>2007-02-27 15:20:01 +0000
committermental <mental@users.sourceforge.net>2007-02-27 15:20:01 +0000
commit03c942c587504ffbc78eed44bb32fded3286ab91 (patch)
tree0b209cd63a3977e8dd9d3e1293dce4e295fd89a9 /src/document.cpp
parentincrease padding (diff)
downloadinkscape-03c942c587504ffbc78eed44bb32fded3286ab91.tar.gz
inkscape-03c942c587504ffbc78eed44bb32fded3286ab91.zip
get rid of sp_repr_document_root and (commented) sp_repr_duplicate
(bzr r2461)
Diffstat (limited to 'src/document.cpp')
-rw-r--r--src/document.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/document.cpp b/src/document.cpp
index 9fc6dc4da..3579c4c91 100644
--- a/src/document.cpp
+++ b/src/document.cpp
@@ -220,7 +220,7 @@ sp_document_create(Inkscape::XML::Document *rdoc,
Inkscape::XML::Node *rroot;
Inkscape::Version sodipodi_version;
- rroot = sp_repr_document_root(rdoc);
+ rroot = rdoc->root();
document = new SPDocument();
@@ -341,7 +341,7 @@ sp_document_new(gchar const *uri, unsigned int keepalive, bool make_new)
rdoc = sp_repr_read_file(uri, SP_SVG_NS_URI);
/* If file cannot be loaded, return NULL without warning */
if (rdoc == NULL) return NULL;
- rroot = sp_repr_document_root(rdoc);
+ rroot = rdoc->root();
/* If xml file is not svg, return NULL without warning */
/* fixme: destroy document */
if (strcmp(rroot->name(), "svg:svg") != 0) return NULL;
@@ -390,7 +390,7 @@ sp_document_new_from_mem(gchar const *buffer, gint length, unsigned int keepaliv
/* If it cannot be loaded, return NULL without warning */
if (rdoc == NULL) return NULL;
- rroot = sp_repr_document_root(rdoc);
+ rroot = rdoc->root();
/* If xml file is not svg, return NULL without warning */
/* fixme: destroy document */
if (strcmp(rroot->name(), "svg:svg") != 0) return NULL;