diff options
| author | bulia byak <buliabyak@gmail.com> | 2007-03-30 05:57:36 +0000 |
|---|---|---|
| committer | buliabyak <buliabyak@users.sourceforge.net> | 2007-03-30 05:57:36 +0000 |
| commit | 695c07aacb0e11a909325bb3ef7be70a3bedc710 (patch) | |
| tree | bdadd775cf06618ff07c831f5137942d3f763fc5 /src/sp-use.cpp | |
| parent | fix 1690914 (diff) | |
| download | inkscape-695c07aacb0e11a909325bb3ef7be70a3bedc710.tar.gz inkscape-695c07aacb0e11a909325bb3ef7be70a3bedc710.zip | |
a better and more complete fix for 1690914
(bzr r2785)
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. |
