From 425a638efbeb11373a047a544aee0f1a47ebe9f6 Mon Sep 17 00:00:00 2001 From: mental Date: Wed, 11 Jun 2008 16:34:55 +0000 Subject: [PATCH] fix bug #239092 --- src/extension/implementation/script.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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())); } } -- 2.30.2