Code

Fixed crash when adding filter attributes on XML tree.
authorhaa_rodrigues <haa_rodrigues@users.sourceforge.net>
Thu, 29 Jun 2006 13:39:12 +0000 (13:39 +0000)
committerhaa_rodrigues <haa_rodrigues@users.sourceforge.net>
Thu, 29 Jun 2006 13:39:12 +0000 (13:39 +0000)
src/sp-filter.cpp

index c3a4389c3139852fc66860fc60c26c3867ad3e66..b45eb0122743d9be8e10c21535b9f61dce533604 100644 (file)
@@ -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) {