fixed svg path parsing for arcs with more than one definition

This commit is contained in:
BrownBear2 2015-01-05 21:32:21 +01:00
parent 1c758a415a
commit 4d36a2d6f4

View file

@ -253,8 +253,8 @@ var PathItem = Item.extend(/** @lends PathItem# */{
case 'a': case 'a':
for (var j = 0; j < length; j += 7) { for (var j = 0; j < length; j += 7) {
this.arcTo(current = getPoint(j + 5), this.arcTo(current = getPoint(j + 5),
new Size(+coords[0], +coords[1]), new Size(+coords[j + 0], +coords[j + 1]),
+coords[2], +coords[4], +coords[3]); +coords[j + 2], +coords[j + 4], +coords[j + 3]);
} }
break; break;
case 'z': case 'z':