From: acspike Date: Tue, 26 Jun 2007 01:25:38 +0000 (+0000) Subject: fix up what was left broken after the lxml conversion X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=1400795f8717e45e0fb237e517bfadc5797711f8;p=inkscape.git fix up what was left broken after the lxml conversion --- 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()