X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fsp-fetile.cpp;h=598ccdb84bd5b98108b08366039198369c7ef102;hb=9e973c4fb2183b877bb600a7e9c75e93b3e7d6d1;hp=61cb68bdafb73028a661bbfa04ab9fbf64f27b58;hpb=6999558b22096849285acee719ebdeb69f15277d;p=inkscape.git diff --git a/src/sp-fetile.cpp b/src/sp-fetile.cpp index 61cb68bda..598ccdb84 100644 --- a/src/sp-fetile.cpp +++ b/src/sp-fetile.cpp @@ -32,7 +32,7 @@ static void sp_feTile_build(SPObject *object, SPDocument *document, Inkscape::XM static void sp_feTile_release(SPObject *object); static void sp_feTile_set(SPObject *object, unsigned int key, gchar const *value); static void sp_feTile_update(SPObject *object, SPCtx *ctx, guint flags); -static Inkscape::XML::Node *sp_feTile_write(SPObject *object, Inkscape::XML::Node *repr, guint flags); +static Inkscape::XML::Node *sp_feTile_write(SPObject *object, Inkscape::XML::Document *doc, Inkscape::XML::Node *repr, guint flags); static void sp_feTile_build_renderer(SPFilterPrimitive *primitive, NR::Filter *filter); static SPFilterPrimitiveClass *feTile_parent_class; @@ -145,7 +145,7 @@ sp_feTile_update(SPObject *object, SPCtx *ctx, guint flags) * Writes its settings to an incoming repr object, if any. */ static Inkscape::XML::Node * -sp_feTile_write(SPObject *object, Inkscape::XML::Node *repr, guint flags) +sp_feTile_write(SPObject *object, Inkscape::XML::Document *doc, Inkscape::XML::Node *repr, guint flags) { // Inkscape-only object, not copied during an "plain SVG" dump: if (flags & SP_OBJECT_WRITE_EXT) { @@ -153,12 +153,12 @@ sp_feTile_write(SPObject *object, Inkscape::XML::Node *repr, guint flags) // is this sane? //repr->mergeFrom(SP_OBJECT_REPR(object), "id"); } else { - repr = SP_OBJECT_REPR(object)->duplicate(NULL); // FIXME + repr = SP_OBJECT_REPR(object)->duplicate(doc); } } if (((SPObjectClass *) feTile_parent_class)->write) { - ((SPObjectClass *) feTile_parent_class)->write(object, repr, flags); + ((SPObjectClass *) feTile_parent_class)->write(object, doc, repr, flags); } return repr;