summaryrefslogtreecommitdiffstats
path: root/src/arc-context.cpp
diff options
context:
space:
mode:
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 */