Code

get rid of sp_repr_document_root and (commented) sp_repr_duplicate
[inkscape.git] / src / extension / internal / svg.cpp
index 5539e03582f2e3a772c0c86833cc15b7bd29dab1..9a097bd6e6cf37c2b0dba185e9ec5c83f371b8f3 100644 (file)
@@ -208,7 +208,7 @@ Svg::save (Inkscape::Extension::Output *mod, SPDocument *doc, const gchar *uri)
         repr = sp_document_repr_root (doc);
     } else {
         rdoc = sp_repr_document_new ("svg:svg");
-        repr = sp_repr_document_root (rdoc);
+        repr = rdoc->root();
         repr = sp_document_root (doc)->updateRepr(repr, SP_OBJECT_WRITE_BUILD);
     }