From 5063f31f609ad9c89e7b6d0667c39bc4fad35c27 Mon Sep 17 00:00:00 2001 From: MenTaLguY Date: Tue, 20 Mar 2007 22:54:29 +0000 Subject: plumb XML::Document parameter into duplication, courtesy of bryce (bzr r2723) --- src/document.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/document.cpp') diff --git a/src/document.cpp b/src/document.cpp index c6dc66a51..e66089fed 100644 --- a/src/document.cpp +++ b/src/document.cpp @@ -279,7 +279,7 @@ sp_document_create(Inkscape::XML::Document *rdoc, rnew->setAttribute("id", "base"); } else { // otherwise, take from preferences - rnew = r->duplicate(); + rnew = r->duplicate(rroot->document()); } // insert into the document rroot->addChild(rnew, NULL); -- cgit v1.2.3