Commit d5282bd2 authored by Martin Owens's avatar Martin Owens
Browse files

Fix insensitive issue because inkscape can't parse 'false'

parent ae16ade7
Pipeline #352694688 failed with stages
in 6 minutes and 12 seconds
......@@ -438,7 +438,8 @@ class BaseElement(etree.ElementBase):
def set_sensitive(self, sensitive=True):
"""Set the sensitivity of the element/layer"""
self.set('sodipodi:insensitive', str((not sensitive)).lower())
# Sensitive requires None instead of 'false'
self.set('sodipodi:insensitive', ['true', None][sensitive])
def unit(self):
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment