Small fix in line_shading

This commit is contained in:
Mario Voigt 2023-03-10 07:09:12 +01:00
parent a3ddb1361c
commit f112b917e1
1 changed files with 4 additions and 0 deletions

View File

@ -263,6 +263,10 @@ class LineShading(inkex.EffectExtension):
newpath.set('style', str(inkex.Style(s)))
x = node.get('x')
y = node.get('y')
if x is None:
x = "0"
if y is None:
y = "0"
t = 'translate('+ x +','+ y +')'
newpath.set('transform', t)
image_w = float(node.get('width'))