From db870899a8edd708de2499f21704a773c720aae8 Mon Sep 17 00:00:00 2001 From: buliabyak Date: Fri, 30 Mar 2007 05:57:36 +0000 Subject: [PATCH] a better and more complete fix for 1690914 --- src/sp-use.cpp | 4 ++-- 1 file 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. -- 2.30.2