diff options
| author | Hugo Rodrigues <me@hugorodrigues.com> | 2006-06-29 13:39:12 +0000 |
|---|---|---|
| committer | haa_rodrigues <haa_rodrigues@users.sourceforge.net> | 2006-06-29 13:39:12 +0000 |
| commit | 2bf59abeecde1a5c2cdd7759720ad7da3625d4f8 (patch) | |
| tree | 7bfe6506fad1dd98c1b4c5ac326006c251e2749d /src | |
| parent | Missing style instructions (for filters) added. (diff) | |
| download | inkscape-2bf59abeecde1a5c2cdd7759720ad7da3625d4f8.tar.gz inkscape-2bf59abeecde1a5c2cdd7759720ad7da3625d4f8.zip | |
Fixed crash when adding filter attributes on XML tree.
(bzr r1313)
Diffstat (limited to 'src')
| -rw-r--r-- | src/sp-filter.cpp | 16 |
1 files changed, 2 insertions, 14 deletions
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) { |
