From: mental Date: Wed, 11 Jun 2008 16:34:55 +0000 (+0000) Subject: fix bug #239092 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=425a638efbeb11373a047a544aee0f1a47ebe9f6;p=inkscape.git fix bug #239092 --- diff --git a/src/extension/implementation/script.cpp b/src/extension/implementation/script.cpp index 4eeb3f27f..4c705f5cf 100644 --- a/src/extension/implementation/script.cpp +++ b/src/extension/implementation/script.cpp @@ -844,11 +844,11 @@ Script::copy_doc (Inkscape::XML::Node * oldroot, Inkscape::XML::Node * newroot) for (Inkscape::XML::Node * newroot_namedview_child = child->firstChild(); newroot_namedview_child != NULL; newroot_namedview_child = newroot_namedview_child->next()) { - oldroot_namedview->appendChild(newroot_namedview_child->duplicate(child->document())); + oldroot_namedview->appendChild(newroot_namedview_child->duplicate(oldroot->document())); } } } else { - oldroot->appendChild(child->duplicate(newroot->document())); + oldroot->appendChild(child->duplicate(oldroot->document())); } }