summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2011-11-29 15:47:27 +0000
committertavmjong-free <tavmjong@free.fr>2011-11-29 15:47:27 +0000
commitf8c23dc7d4dff313109ddee26b68e2f10465d200 (patch)
tree427fabf88332272067af2748bcdf62dd6528767d /src
parentAdd possibility to check validity of attributes and usefulness of properties. (diff)
downloadinkscape-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')
-rw-r--r--src/attribute-rel-util.cpp4
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 );
}
}