From: mental Date: Sat, 24 Mar 2007 20:17:53 +0000 (+0000) Subject: we have no document available yet at this point X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4276c93d9e72f3cd37f6737ff937410fe64e1d99;p=inkscape.git we have no document available yet at this point --- 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); }