Code

Attempt fix for Bug #178022
[inkscape.git] / share / extensions / markers_strokepaint.py
index 04fd4c5c7d3107320c4c64cf383f9954b7bfa43f..5442cfa48e54501eae8d7bbddf76c19797fde03e 100644 (file)
@@ -61,7 +61,7 @@ class MyEffect(inkex.Effect):
                     mnode.set(inkex.addNS('stockid','inkscape'), new_id)\r
                     defs.append(mnode)\r
                     \r
-                    children = mnode.xpath('.//*[@style]',inkex.NSS)\r
+                    children = mnode.xpath('.//*[@style]', namespaces=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