summaryrefslogtreecommitdiffstats
path: root/src/sp-filter.cpp
diff options
context:
space:
mode:
authorHugo Rodrigues <me@hugorodrigues.com>2006-06-29 13:39:12 +0000
committerhaa_rodrigues <haa_rodrigues@users.sourceforge.net>2006-06-29 13:39:12 +0000
commit2bf59abeecde1a5c2cdd7759720ad7da3625d4f8 (patch)
tree7bfe6506fad1dd98c1b4c5ac326006c251e2749d /src/sp-filter.cpp
parentMissing style instructions (for filters) added. (diff)
downloadinkscape-2bf59abeecde1a5c2cdd7759720ad7da3625d4f8.tar.gz
inkscape-2bf59abeecde1a5c2cdd7759720ad7da3625d4f8.zip
Fixed crash when adding filter attributes on XML tree.
(bzr r1313)
Diffstat (limited to 'src/sp-filter.cpp')
-rw-r--r--src/sp-filter.cpp16
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) {