Code

remove sp_repr_new use from document creation
authormental <mental@users.sourceforge.net>
Thu, 25 Jan 2007 03:51:04 +0000 (03:51 +0000)
committermental <mental@users.sourceforge.net>
Thu, 25 Jan 2007 03:51:04 +0000 (03:51 +0000)
src/xml/repr.cpp

index 9612bb8587526cf326bf7ede5210ed3940610df8..bd64afc34eb5252111f8bee9216afcdaca6a8bca 100644 (file)
@@ -64,12 +64,12 @@ sp_repr_document_new(char const *rootname)
     if (!strcmp(rootname, "svg:svg")) {
         doc->setAttribute("version", "1.0");
         doc->setAttribute("standalone", "no");
-        Inkscape::XML::Node *comment = sp_repr_new_comment(" Created with Inkscape (http://www.inkscape.org/) ");
+        Inkscape::XML::Node *comment = doc->createComment(" Created with Inkscape (http://www.inkscape.org/) ");
         doc->appendChild(comment);
         Inkscape::GC::release(comment);
     }
 
-    Inkscape::XML::Node *root = sp_repr_new(rootname);
+    Inkscape::XML::Node *root = doc->createElement(rootname);
     doc->appendChild(root);
     Inkscape::GC::release(root);