summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 935223f)
raw | patch | inline | side by side (parent: 935223f)
author | JazzyNico <nicoduf@yahoo.fr> | |
Thu, 23 Dec 2010 20:42:24 +0000 (21:42 +0100) | ||
committer | JazzyNico <nicoduf@yahoo.fr> | |
Thu, 23 Dec 2010 20:42:24 +0000 (21:42 +0100) |
share/extensions/markers_strokepaint.py | patch | blob | history |
index e37c816561b6992729ef2797ca64d1de85c795b8..d357d19885be3c43ecb8ad40401bd8b76ae07caf 100644 (file)
children = mnode.xpath('.//*[@style]', namespaces=inkex.NSS)
for child in children:
cstyle = simplestyle.parseStyle(child.get('style'))
- if (not(self.options.tab == '"object"' and cstyle['stroke'] == 'none' and self.options.fill_type == "filled")):
+ if (not('stroke' in cstyle and self.options.tab == '"object"' and cstyle['stroke'] == 'none' and self.options.fill_type == "filled")):
cstyle['stroke'] = stroke
if 'stroke_opacity' in locals():
cstyle['stroke-opacity'] = stroke_opacity
- if (not(self.options.tab == '"object"' and cstyle['fill'] == 'none' and self.options.fill_type == "solid")):
+ if (not('fill' in cstyle and self.options.tab == '"object"' and cstyle['fill'] == 'none' and self.options.fill_type == "solid")):
cstyle['fill'] = fill
if 'fill_opacity' in locals():
cstyle['fill-opacity'] = fill_opacity