From 1400795f8717e45e0fb237e517bfadc5797711f8 Mon Sep 17 00:00:00 2001 From: acspike Date: Tue, 26 Jun 2007 01:25:38 +0000 Subject: [PATCH] fix up what was left broken after the lxml conversion --- share/extensions/markers_strokepaint.py | 7 ++++--- 1 file 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() -- 2.30.2