diff options
| author | Aaron Spike <aaron@ekips.org> | 2007-06-26 01:25:38 +0000 |
|---|---|---|
| committer | acspike <acspike@users.sourceforge.net> | 2007-06-26 01:25:38 +0000 |
| commit | 58b118e0e6fb55038d7bbfc8743c108e1fdd7415 (patch) | |
| tree | e144c0440a64428758c5980af4b0a65180541527 | |
| parent | Remove unused function sp_png_write_rgba (and its helper function sp_png_get_... (diff) | |
| download | inkscape-58b118e0e6fb55038d7bbfc8743c108e1fdd7415.tar.gz inkscape-58b118e0e6fb55038d7bbfc8743c108e1fdd7415.zip | |
fix up what was left broken after the lxml conversion
(bzr r3104)
| -rw-r--r-- | share/extensions/markers_strokepaint.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/share/extensions/markers_strokepaint.py b/share/extensions/markers_strokepaint.py index a6928f5e4..cc186eaa2 100644 --- a/share/extensions/markers_strokepaint.py +++ b/share/extensions/markers_strokepaint.py @@ -61,14 +61,15 @@ class MyEffect(inkex.Effect): mnode.set(inkex.addNS('stockid','inkscape'), new_id)
defs.append(mnode)
- children = self.document.getroot().xpath('/svg:svg//svg:marker[@id="%s"]//*[@style]' % new_id,inkex.NSS)
+ children = mnode.xpath('.//*[@style]',inkex.NSS)
for child in children:
cstyle = simplestyle.parseStyle(child.get('style'))
if ('stroke' in cstyle and cstyle['stroke'] != 'none') or 'stroke' not in cstyle:
- cstyle['stroke'] = stroke
+ cstyle['stroke'] = stroke
if ('fill' in cstyle and cstyle['fill'] != 'none') or 'fill' not in cstyle:
- cstyle['fill'] = stroke
+ cstyle['fill'] = stroke
child.set('style',simplestyle.formatStyle(cstyle))
node.set('style',simplestyle.formatStyle(style))
+
e = MyEffect()
e.affect()
|
