From: haa_rodrigues Date: Thu, 29 Jun 2006 13:39:12 +0000 (+0000) Subject: Fixed crash when adding filter attributes on XML tree. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=6c1edd8c9f1d31e0b4ceafa26f44692e18ee09d2;p=inkscape.git Fixed crash when adding filter attributes on XML tree. --- diff --git a/src/sp-filter.cpp b/src/sp-filter.cpp index c3a4389c3..b45eb0122 100644 --- a/src/sp-filter.cpp +++ b/src/sp-filter.cpp @@ -304,21 +304,9 @@ sp_filter_write(SPObject *object, Inkscape::XML::Node *repr, guint flags) debug("0x%p",object); SPFilter *filter = SP_FILTER(object); - // Inkscape-only object, not copied during an "plain SVG" dump: -/* if (flags & SP_OBJECT_WRITE_EXT) { - if (repr) { - // is this sane? - repr->mergeFrom(SP_OBJECT_REPR(object), "id"); - } else { - repr = SP_OBJECT_REPR(object)->duplicate(); - } + if (!repr) { + repr = SP_OBJECT_REPR(object)->duplicate(); } -*/ - - -//FIXME: repr node is null at this point, -// preventing plain svg save. Need to fix this. - if ((flags & SP_OBJECT_WRITE_ALL) || filter->filterUnits_set) { switch (filter->filterUnits) {