summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorNicolas Dufour <nicoduf@yahoo.fr>2010-12-23 20:42:24 +0000
committerJazzyNico <nicoduf@yahoo.fr>2010-12-23 20:42:24 +0000
commit1f1419e5774d7146d32ea28093da1c2fe7808db8 (patch)
tree1c3e992b54bb75362b19a6cbe97c1196c44223a8 /share
parentExtensions. Color Markers extension improvements (Bug #692582, Color markers ... (diff)
downloadinkscape-1f1419e5774d7146d32ea28093da1c2fe7808db8.tar.gz
inkscape-1f1419e5774d7146d32ea28093da1c2fe7808db8.zip
Extensions. Fix Color Markers extension (crashed when a fill or stroke attribute was not set.)
(bzr r9983)
Diffstat (limited to 'share')
-rw-r--r--share/extensions/markers_strokepaint.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/share/extensions/markers_strokepaint.py b/share/extensions/markers_strokepaint.py
index e37c81656..d357d1988 100644
--- a/share/extensions/markers_strokepaint.py
+++ b/share/extensions/markers_strokepaint.py
@@ -142,11 +142,11 @@ class MyEffect(inkex.Effect):
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