Fix default matrix used when parsing svg path without transform attribute
This commit is contained in:
parent
1c0ec91fe1
commit
3d60aa096b
|
@ -34,8 +34,9 @@ class SVGFile(object):
|
||||||
if m:
|
if m:
|
||||||
matrix = [float(m.group(i)) for i in range(1, 12, 2)]
|
matrix = [float(m.group(i)) for i in range(1, 12, 2)]
|
||||||
else:
|
else:
|
||||||
matrix = [1,0,0,
|
matrix = [1, 0,
|
||||||
0,1,0]
|
0, 1,
|
||||||
|
0, 0]
|
||||||
for m in self.pathre.findall(attrs.get("d", "")):
|
for m in self.pathre.findall(attrs.get("d", "")):
|
||||||
x = float(m[1])
|
x = float(m[1])
|
||||||
y = float(m[3])
|
y = float(m[3])
|
||||||
|
|
Loading…
Reference in New Issue