Small fix in line_shading
This commit is contained in:
parent
a3ddb1361c
commit
f112b917e1
@ -263,6 +263,10 @@ class LineShading(inkex.EffectExtension):
|
|||||||
newpath.set('style', str(inkex.Style(s)))
|
newpath.set('style', str(inkex.Style(s)))
|
||||||
x = node.get('x')
|
x = node.get('x')
|
||||||
y = node.get('y')
|
y = node.get('y')
|
||||||
|
if x is None:
|
||||||
|
x = "0"
|
||||||
|
if y is None:
|
||||||
|
y = "0"
|
||||||
t = 'translate('+ x +','+ y +')'
|
t = 'translate('+ x +','+ y +')'
|
||||||
newpath.set('transform', t)
|
newpath.set('transform', t)
|
||||||
image_w = float(node.get('width'))
|
image_w = float(node.get('width'))
|
||||||
|
Loading…
Reference in New Issue
Block a user