summaryrefslogtreecommitdiffstats
path: root/src/marker.cpp
diff options
context:
space:
mode:
authorMenTaLguY <mental@rydia.net>2007-01-21 19:03:03 +0000
committermental <mental@users.sourceforge.net>2007-01-21 19:03:03 +0000
commit63731301866e7b9cb231a43658a7c51ec2d70690 (patch)
tree91b475a32308003e60e40ac0f318dc00be019a6e /src/marker.cpp
parentDeprecate sp_repr_new* functions (diff)
downloadinkscape-63731301866e7b9cb231a43658a7c51ec2d70690.tar.gz
inkscape-63731301866e7b9cb231a43658a7c51ec2d70690.zip
start switching sp_repr_new* over to XML::Document::create*, and rename create methods to match DOM
(bzr r2253)
Diffstat (limited to 'src/marker.cpp')
-rw-r--r--src/marker.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/marker.cpp b/src/marker.cpp
index 65ed3789f..1fb758462 100644
--- a/src/marker.cpp
+++ b/src/marker.cpp
@@ -25,6 +25,7 @@
#include "xml/repr.h"
#include "attributes.h"
#include "marker.h"
+#include "document.h"
struct SPMarkerView {
SPMarkerView *next;
@@ -489,7 +490,8 @@ sp_marker_write (SPObject *object, Inkscape::XML::Node *repr, guint flags)
marker = SP_MARKER (object);
if ((flags & SP_OBJECT_WRITE_BUILD) && !repr) {
- repr = sp_repr_new ("svg:marker");
+ Inkscape::XML::Document *xml_doc = sp_document_repr_doc(SP_OBJECT_DOCUMENT(object));
+ repr = xml_doc->createElement("svg:marker");
}
if (marker->markerUnits_set) {