X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fdialogs%2Fxml-tree.cpp;h=dd5371460f7c21a552f5a3f58a1f147f709bb002;hb=6d7d846dbf27d17b82110d99015a85cff809a789;hp=9ad3c0586b4ed1ceb708646ac83f344635b89d0c;hpb=3caca4f8381f7ae35678d16074c2414c02a0c0ff;p=inkscape.git diff --git a/src/dialogs/xml-tree.cpp b/src/dialogs/xml-tree.cpp index 9ad3c0586..dd5371460 100644 --- a/src/dialogs/xml-tree.cpp +++ b/src/dialogs/xml-tree.cpp @@ -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,