From db03015176f22e76cd359fd979242ab306ac7cbb Mon Sep 17 00:00:00 2001 From: leyghisbb Date: Sun, 30 Aug 2020 11:30:38 +0200 Subject: [PATCH] Fixed deprecation in X-Agram --- extensions/fablabchemnitz_x_agram.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/extensions/fablabchemnitz_x_agram.py b/extensions/fablabchemnitz_x_agram.py index c3b8d900..e26513e5 100644 --- a/extensions/fablabchemnitz_x_agram.py +++ b/extensions/fablabchemnitz_x_agram.py @@ -74,10 +74,10 @@ class XGramEffect(inkex.Effect): if useInnerCircle and showInnerCircle: if not isEllipse: - cin = inkex.etree.SubElement(layer, inkex.addNS('circle','svg')) + cin = etree.SubElement(layer, inkex.addNS('circle','svg')) cin.set('r', str(rx * innerRatio)) else: - cin = inkex.etree.SubElement(layer, inkex.addNS('ellipse','svg')) + cin = etree.SubElement(layer, inkex.addNS('ellipse','svg')) cin.set('rx', str(rx * innerRatio)) cin.set('ry', str(ry * innerRatio)) cin.set('cx', str(cx)) @@ -142,4 +142,4 @@ class XGramEffect(inkex.Effect): inkex.errormsg('Selection must contain a circle or ellipse.') if __name__ == '__main__': - XGramEffect().run() \ No newline at end of file + XGramEffect().run()