diff options
| author | Tavmjong Bah <tavmjong@free.fr> | 2011-11-29 15:47:27 +0000 |
|---|---|---|
| committer | tavmjong-free <tavmjong@free.fr> | 2011-11-29 15:47:27 +0000 |
| commit | f8c23dc7d4dff313109ddee26b68e2f10465d200 (patch) | |
| tree | 427fabf88332272067af2748bcdf62dd6528767d /src/attribute-rel-util.cpp | |
| parent | Add possibility to check validity of attributes and usefulness of properties. (diff) | |
| download | inkscape-f8c23dc7d4dff313109ddee26b68e2f10465d200.tar.gz inkscape-f8c23dc7d4dff313109ddee26b68e2f10465d200.zip | |
Add feMergeNode to "in" list in svgprops. Fix bug in preferences for deleting invalid attributes.
(bzr r10754)
Diffstat (limited to 'src/attribute-rel-util.cpp')
| -rw-r--r-- | src/attribute-rel-util.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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 ); } } |
