fixed typo in extension
This commit is contained in:
parent
70d90d6183
commit
0e35a0d0b3
@ -1,4 +0,0 @@
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<svg xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:cc="http://creativecommons.org/ns#" xmlns:ccOLD="http://web.resource.org/cc/" xmlns:svg="http://www.w3.org/2000/svg" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<defs/>
|
||||
</svg>
|
Before Width: | Height: | Size: 457 B |
@ -31,7 +31,7 @@ import sys
|
||||
import re
|
||||
from lxml import etree
|
||||
|
||||
class StrokeColorAsFill(inkex.Effect):
|
||||
class StrokeColorAsFill(inkex.EffectExtension):
|
||||
def __init__(self):
|
||||
inkex.Effect.__init__(self)
|
||||
self.arg_parser.add_argument("--tab", help="The selected UI-tab")
|
||||
@ -42,7 +42,7 @@ class StrokeColorAsFill(inkex.Effect):
|
||||
self.arg_parser.add_argument("--fill_stroke_convert_unset", type=inkex.Boolean, default=True, help="Convert 'Unset' property")
|
||||
self.arg_parser.add_argument("--nodash", type=inkex.Boolean, default="false", help="Fix dash-stroke to alow no line only markers")
|
||||
|
||||
def color_swaper(self, element):
|
||||
def color_swapper(self, element):
|
||||
if element.tag == inkex.addNS('g', 'svg'):
|
||||
for e in element:
|
||||
self.color_swaper(e)
|
||||
@ -104,7 +104,7 @@ class StrokeColorAsFill(inkex.Effect):
|
||||
sys.stdout = sys.stderr
|
||||
svg = self.document.getroot()
|
||||
for id, element in self.svg.selected.items():
|
||||
self.color_swaper(element)
|
||||
self.color_swapper(element)
|
||||
sys.stdout = saveout
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
Reference in New Issue
Block a user