diff options
| author | MenTaLguY <mental@rydia.net> | 2007-01-25 03:51:04 +0000 |
|---|---|---|
| committer | mental <mental@users.sourceforge.net> | 2007-01-25 03:51:04 +0000 |
| commit | 1e2a23c967912372592284036385ba64f6eecd36 (patch) | |
| tree | 4e5e9b7698f4b9783a2624d9a50bdd9b41813ae4 /src/xml | |
| parent | replace sp_repr_new*s (diff) | |
| download | inkscape-1e2a23c967912372592284036385ba64f6eecd36.tar.gz inkscape-1e2a23c967912372592284036385ba64f6eecd36.zip | |
remove sp_repr_new use from document creation
(bzr r2282)
Diffstat (limited to 'src/xml')
| -rw-r--r-- | src/xml/repr.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xml/repr.cpp b/src/xml/repr.cpp index 9612bb858..bd64afc34 100644 --- a/src/xml/repr.cpp +++ b/src/xml/repr.cpp @@ -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); |
