From 0e35a0d0b35a4618efd3d80096d4c4463cfd741b Mon Sep 17 00:00:00 2001 From: Mario Voigt Date: Sun, 4 Apr 2021 15:42:54 +0200 Subject: [PATCH] fixed typo in extension --- extensions/fablabchemnitz/my-gradients.svg | 4 ---- extensions/fablabchemnitz/strokecolor_as_fill.py | 6 +++--- 2 files changed, 3 insertions(+), 7 deletions(-) delete mode 100644 extensions/fablabchemnitz/my-gradients.svg diff --git a/extensions/fablabchemnitz/my-gradients.svg b/extensions/fablabchemnitz/my-gradients.svg deleted file mode 100644 index 98aff73c..00000000 --- a/extensions/fablabchemnitz/my-gradients.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/extensions/fablabchemnitz/strokecolor_as_fill.py b/extensions/fablabchemnitz/strokecolor_as_fill.py index cf988144..082ba076 100644 --- a/extensions/fablabchemnitz/strokecolor_as_fill.py +++ b/extensions/fablabchemnitz/strokecolor_as_fill.py @@ -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__':