diff options
Diffstat (limited to 'src/sp-use.cpp')
| -rw-r--r-- | src/sp-use.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sp-use.cpp b/src/sp-use.cpp index cc23349a4..e31af9356 100644 --- a/src/sp-use.cpp +++ b/src/sp-use.cpp @@ -665,11 +665,11 @@ sp_use_unlink(SPUse *use) if (SP_IS_SYMBOL(orig)) { // make a group, copy children copy = xml_doc->createElement("svg:g"); for (Inkscape::XML::Node *child = SP_OBJECT_REPR(orig)->firstChild() ; child != NULL; child = child->next()) { - Inkscape::XML::Node *newchild = child->duplicate(copy->document()); + Inkscape::XML::Node *newchild = child->duplicate(xml_doc); copy->appendChild(newchild); } } else { // just copy - copy = SP_OBJECT_REPR(orig)->duplicate(SP_OBJECT_REPR(orig)->document()); + copy = SP_OBJECT_REPR(orig)->duplicate(xml_doc); } // Add the duplicate repr just after the existing one. |
