X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fsp-feblend.cpp;h=0522a38e32965234a1bb6f7ec29b1f4009209907;hb=80d34fe4a953d704430b44c6201a4fcbf455dfc6;hp=1c560e81bdc96c31a3b37599d31ba183f3dad624;hpb=368622010cf5cb2dda801c6a3ad939e28757a635;p=inkscape.git diff --git a/src/sp-feblend.cpp b/src/sp-feblend.cpp index 1c560e81b..0522a38e3 100644 --- a/src/sp-feblend.cpp +++ b/src/sp-feblend.cpp @@ -39,7 +39,7 @@ static void sp_feBlend_build(SPObject *object, SPDocument *document, Inkscape::X static void sp_feBlend_release(SPObject *object); static void sp_feBlend_set(SPObject *object, unsigned int key, gchar const *value); static void sp_feBlend_update(SPObject *object, SPCtx *ctx, guint flags); -static Inkscape::XML::Node *sp_feBlend_write(SPObject *object, Inkscape::XML::Node *repr, guint flags); +static Inkscape::XML::Node *sp_feBlend_write(SPObject *object, Inkscape::XML::Document *doc, Inkscape::XML::Node *repr, guint flags); static void sp_feBlend_build_renderer(SPFilterPrimitive *sp_prim, NR::Filter *filter); static SPFilterPrimitiveClass *feBlend_parent_class; @@ -201,7 +201,7 @@ sp_feBlend_update(SPObject *object, SPCtx *ctx, guint flags) * Writes its settings to an incoming repr object, if any. */ static Inkscape::XML::Node * -sp_feBlend_write(SPObject *object, Inkscape::XML::Node *repr, guint flags) +sp_feBlend_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) { @@ -209,12 +209,12 @@ sp_feBlend_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 *) feBlend_parent_class)->write) { - ((SPObjectClass *) feBlend_parent_class)->write(object, repr, flags); + ((SPObjectClass *) feBlend_parent_class)->write(object, doc, repr, flags); } return repr;