summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c90555a)
raw | patch | inline | side by side (parent: c90555a)
author | acspike <acspike@users.sourceforge.net> | |
Tue, 26 Jun 2007 01:25:38 +0000 (01:25 +0000) | ||
committer | acspike <acspike@users.sourceforge.net> | |
Tue, 26 Jun 2007 01:25:38 +0000 (01:25 +0000) |
share/extensions/markers_strokepaint.py | patch | blob | history |
index a6928f5e4f9f59ac0156f6659c5520e64bfbcb0d..cc186eaa2939a8c695a32e425104e724fc8e83a6 100644 (file)
mnode.set(inkex.addNS('stockid','inkscape'), new_id)\r
defs.append(mnode)\r
\r
- children = self.document.getroot().xpath('/svg:svg//svg:marker[@id="%s"]//*[@style]' % new_id,inkex.NSS)\r
+ children = mnode.xpath('.//*[@style]',inkex.NSS)\r
for child in children:\r
cstyle = simplestyle.parseStyle(child.get('style'))\r
if ('stroke' in cstyle and cstyle['stroke'] != 'none') or 'stroke' not in cstyle:\r
- cstyle['stroke'] = stroke\r
+ cstyle['stroke'] = stroke\r
if ('fill' in cstyle and cstyle['fill'] != 'none') or 'fill' not in cstyle:\r
- cstyle['fill'] = stroke\r
+ cstyle['fill'] = stroke\r
child.set('style',simplestyle.formatStyle(cstyle))\r
node.set('style',simplestyle.formatStyle(style))\r
+\r
e = MyEffect()\r
e.affect()\r