Code

Implement object-snapping for clones (see bug #1511260)
[inkscape.git] / src / dialogs / xml-tree.cpp
index 9ad3c0586b4ed1ceb708646ac83f344635b89d0c..dd5371460f7c21a552f5a3f58a1f147f709bb002 100644 (file)
@@ -1407,7 +1407,7 @@ void cmd_duplicate_node(GtkObject *object, gpointer data)
     g_assert(selected_repr != NULL);
 
     Inkscape::XML::Node *parent = sp_repr_parent(selected_repr);
-    Inkscape::XML::Node *dup = selected_repr->duplicate();
+    Inkscape::XML::Node *dup = selected_repr->duplicate(parent->document());
     parent->addChild(dup, selected_repr);
 
     sp_document_done(current_document, SP_VERB_DIALOG_XML_EDITOR,