diff --git a/src/arc-context.cpp b/src/arc-context.cpp
index c0f8dd75c73e09127a020fc9eee3b1911f4b40eb..c682677a69c1c001d39bc423cd9ec79da2dae4cc 100644 (file)
--- a/src/arc-context.cpp
+++ b/src/arc-context.cpp
}
/* 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 */