diff options
| author | MenTaLguY <mental@rydia.net> | 2007-03-20 22:54:29 +0000 |
|---|---|---|
| committer | mental <mental@users.sourceforge.net> | 2007-03-20 22:54:29 +0000 |
| commit | 5063f31f609ad9c89e7b6d0667c39bc4fad35c27 (patch) | |
| tree | 70d2c4b365d2cf1d2272fb015297816b92f604f3 /src/dialogs/xml-tree.cpp | |
| parent | Implementing feature request #1673807: snapping of gradient handles (diff) | |
| download | inkscape-5063f31f609ad9c89e7b6d0667c39bc4fad35c27.tar.gz inkscape-5063f31f609ad9c89e7b6d0667c39bc4fad35c27.zip | |
plumb XML::Document parameter into duplication, courtesy of bryce
(bzr r2723)
Diffstat (limited to 'src/dialogs/xml-tree.cpp')
| -rw-r--r-- | src/dialogs/xml-tree.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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, |
