diff --git a/plugins/convertPathData.js b/plugins/convertPathData.js index b2a0950c7..256cfc810 100644 --- a/plugins/convertPathData.js +++ b/plugins/convertPathData.js @@ -327,7 +327,13 @@ function filters(path, params) { arc.base = prev.base; arc.data[5] = arc.coords[0] - arc.base[0]; arc.data[6] = arc.coords[1] - arc.base[1]; - angle += findArcAngle(prev.instruction == 'a' ? prev.sdata : prev.data, relCircle); + var prevData = prev.instruction == 'a' ? prev.sdata : prev.data; + angle += findArcAngle(prevData, + { + center: [prevData[4] + relCenter[0], prevData[5] + relCenter[1]], + radius: circle.radius + } + ); if (angle > Math.PI) arc.data[3] = 1; hasPrev = 1; } diff --git a/test/plugins/convertPathData.14.svg b/test/plugins/convertPathData.14.svg index 3d531024e..eb17e78ff 100644 --- a/test/plugins/convertPathData.14.svg +++ b/test/plugins/convertPathData.14.svg @@ -6,6 +6,7 @@ + @@@ @@ -18,4 +19,5 @@ +