summaryrefslogtreecommitdiffstats
path: root/src/sp-object.cpp
diff options
context:
space:
mode:
authorMenTaLguY <mental@rydia.net>2007-03-24 20:17:53 +0000
committermental <mental@users.sourceforge.net>2007-03-24 20:17:53 +0000
commitf08dd6b9a123cbe7f0b50debb02e0ee3ddf6a34d (patch)
tree64d82764c8e564700345e81aa7168173ddb0c278 /src/sp-object.cpp
parentUpdating star toolbar with radio toggles (diff)
downloadinkscape-f08dd6b9a123cbe7f0b50debb02e0ee3ddf6a34d.tar.gz
inkscape-f08dd6b9a123cbe7f0b50debb02e0ee3ddf6a34d.zip
we have no document available yet at this point
(bzr r2749)
Diffstat (limited to 'src/sp-object.cpp')
-rw-r--r--src/sp-object.cpp2
1 files changed, 1 insertions, 1 deletions
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);
}