Fixed deprecation in X-Agram

This commit is contained in:
leyghisbb 2020-08-30 11:30:38 +02:00
parent 56adeb615a
commit db03015176

View File

@ -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()
XGramEffect().run()