Code

fix copyright year
[inkscape.git] / src / arc-context.cpp
index c0f8dd75c73e09127a020fc9eee3b1911f4b40eb..c682677a69c1c001d39bc423cd9ec79da2dae4cc 100644 (file)
@@ -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 */