summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2017-04-25 12:05:49 +0200
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2017-04-25 12:25:46 +0200
commitac3b9941c72a2e66bf113b2f652fcadfa24cc6de (patch)
tree357acc5ae9e02e5259da791a7f6a2672f312965a /src
parent54362a872c75efa2f54be755a1a48ab87ab3e836 (diff)
downloadsvg.js-ac3b9941c72a2e66bf113b2f652fcadfa24cc6de.tar.gz
svg.js-ac3b9941c72a2e66bf113b2f652fcadfa24cc6de.zip
fixed a bug in path parser which made it stop parsing when hitting z command (#665)
Conflicts: bench/runner.html dist/svg.js dist/svg.min.js package.json
Diffstat (limited to 'src')
-rw-r--r--src/patharray.js2
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'){