diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2017-04-25 12:05:49 +0200 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2017-04-25 12:05:49 +0200 |
commit | 9325620c17dd1e926c5e43e8425cea4fbaad3835 (patch) | |
tree | 9035731d6de9e0ed3625f57cce1c84858fadac4a /src | |
parent | 04e21b18c30d546ed6a16b279504a2b58b503541 (diff) | |
download | svg.js-9325620c17dd1e926c5e43e8425cea4fbaad3835.tar.gz svg.js-9325620c17dd1e926c5e43e8425cea4fbaad3835.zip |
fixed a bug in path parser which made it stop parsing when hitting z command (#665)
Diffstat (limited to 'src')
-rw-r--r-- | src/patharray.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/patharray.js b/src/patharray.js index 1313e59..4fb9318 100644 --- a/src/patharray.js +++ b/src/patharray.js @@ -240,7 +240,7 @@ SVG.extend(SVG.PathArray, { var i, x0, y0, s, seg, arr , x = 0 , y = 0 - , paramCnt = { 'M':2, 'L':2, 'H':1, 'V':1, 'C':6, 'S':4, 'Q':4, 'T':2, 'A':7 } + , paramCnt = { 'M':2, 'L':2, 'H':1, 'V':1, 'C':6, 'S':4, 'Q':4, 'T':2, 'A':7, 'Z':0 } if(typeof array == 'string'){ |