X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Farc-context.cpp;h=c682677a69c1c001d39bc423cd9ec79da2dae4cc;hb=ed7e0c1c7763ae6961d4fe2a987536657323cdad;hp=c0f8dd75c73e09127a020fc9eee3b1911f4b40eb;hpb=dbe32b890d08ee7a085dcee01234f24e32db5ee1;p=inkscape.git 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 */