summaryrefslogtreecommitdiffstats
path: root/src/arc-context.cpp
diff options
context:
space:
mode:
authorAaron Spike <aaron@ekips.org>2007-01-21 20:15:12 +0000
committeracspike <acspike@users.sourceforge.net>2007-01-21 20:15:12 +0000
commite54ee5ffc36f2264f83a9b7493089cd0aa3cd527 (patch)
treec19da83f8b764ed7d94d81334f6877546e19a2fe /src/arc-context.cpp
parentstart switching sp_repr_new* over to XML::Document::create*, and rename creat... (diff)
downloadinkscape-e54ee5ffc36f2264f83a9b7493089cd0aa3cd527.tar.gz
inkscape-e54ee5ffc36f2264f83a9b7493089cd0aa3cd527.zip
continue switching sp_repr_new* over to XML::Document::create*
(bzr r2254)
Diffstat (limited to 'src/arc-context.cpp')
-rw-r--r--src/arc-context.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/arc-context.cpp b/src/arc-context.cpp
index c0f8dd75c..c682677a6 100644
--- a/src/arc-context.cpp
+++ b/src/arc-context.cpp
@@ -395,7 +395,8 @@ static void sp_arc_drag(SPArcContext *ac, NR::Point pt, guint state)
}
/* Create object */
- Inkscape::XML::Node *repr = sp_repr_new("svg:path");
+ Inkscape::XML::Document *xml_doc = sp_document_repr_doc(desktop->doc());
+ Inkscape::XML::Node *repr = xml_doc->createElement("svg:path");
repr->setAttribute("sodipodi:type", "arc");
/* Set style */