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/dialogs/stroke-style.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/dialogs/stroke-style.cpp') diff --git a/src/dialogs/stroke-style.cpp b/src/dialogs/stroke-style.cpp index 7894a89b8..e1640e6af 100644 --- a/src/dialogs/stroke-style.cpp +++ b/src/dialogs/stroke-style.cpp @@ -585,7 +585,8 @@ sp_marker_prev_new(unsigned psize, gchar const *mname, return NULL; // Create a copy repr of the marker with id="sample" - Inkscape::XML::Node *mrepr = SP_OBJECT_REPR (marker)->duplicate(); + Inkscape::XML::Document *xml_doc = sp_document_repr_doc(sandbox); + Inkscape::XML::Node *mrepr = SP_OBJECT_REPR (marker)->duplicate(xml_doc); mrepr->setAttribute("id", "sample"); // Replace the old sample in the sandbox by the new one -- cgit v1.2.3