From f8c23dc7d4dff313109ddee26b68e2f10465d200 Mon Sep 17 00:00:00 2001 From: Tavmjong Bah Date: Tue, 29 Nov 2011 16:47:27 +0100 Subject: Add feMergeNode to "in" list in svgprops. Fix bug in preferences for deleting invalid attributes. (bzr r10754) --- src/attribute-rel-util.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/attribute-rel-util.cpp b/src/attribute-rel-util.cpp index 9104e26c1..49b6fd73e 100644 --- a/src/attribute-rel-util.cpp +++ b/src/attribute-rel-util.cpp @@ -105,8 +105,8 @@ void sp_attribute_clean_element(Node *repr, unsigned int flags) { //Glib::ustring value = (const char*)iter->value; bool is_useful = sp_attribute_check_attribute( element, id, attribute, flags & SP_ATTR_CLEAN_ATTR_WARN ); - if( !is_useful ) { - attributesToDelete.insert( attribute ); + if( !is_useful && (flags & SP_ATTR_CLEAN_ATTR_REMOVE) ) { + attributesToDelete.insert( attribute ); } } -- cgit v1.2.3