Code

we have no document available yet at this point
authormental <mental@users.sourceforge.net>
Sat, 24 Mar 2007 20:17:53 +0000 (20:17 +0000)
committermental <mental@users.sourceforge.net>
Sat, 24 Mar 2007 20:17:53 +0000 (20:17 +0000)
src/sp-object.cpp

index f969fe8428b56ba4335f2137f2263c4a6a0471c8..6526435de98101f25ae6fc984d79a4876648b52b 100644 (file)
@@ -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);
         }