From 4276c93d9e72f3cd37f6737ff937410fe64e1d99 Mon Sep 17 00:00:00 2001 From: mental Date: Sat, 24 Mar 2007 20:17:53 +0000 Subject: [PATCH] we have no document available yet at this point --- src/sp-object.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sp-object.cpp b/src/sp-object.cpp index f969fe842..6526435de 100644 --- a/src/sp-object.cpp +++ b/src/sp-object.cpp @@ -1113,7 +1113,7 @@ static Inkscape::XML::Node * sp_object_private_write(SPObject *object, Inkscape::XML::Node *repr, guint flags) { if (!repr && (flags & SP_OBJECT_WRITE_BUILD)) { - repr = SP_OBJECT_REPR(object)->duplicate(repr->document()); + repr = SP_OBJECT_REPR(object)->duplicate(NULL); // FIXME if (!( flags & SP_OBJECT_WRITE_EXT )) { repr->setAttribute("inkscape:collect", NULL); } -- 2.30.2