summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ea7c6d6)
raw | patch | inline | side by side (parent: ea7c6d6)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Fri, 30 Mar 2007 05:57:36 +0000 (05:57 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Fri, 30 Mar 2007 05:57:36 +0000 (05:57 +0000) |
src/sp-use.cpp | patch | blob | history |
diff --git a/src/sp-use.cpp b/src/sp-use.cpp
index cc23349a4046395bfbd83ea02485010e88be321d..e31af93564372615836ec57489a1d94e5a62084a 100644 (file)
--- a/src/sp-use.cpp
+++ b/src/sp-use.cpp
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.