From 9e14ae8476f0d363cc064ddbb3fa1a954aa309b8 Mon Sep 17 00:00:00 2001 From: Ulrich-Matthias Schäfer Date: Thu, 5 May 2016 15:38:21 +0200 Subject: fixed bug in `parse()` from `SVG.PathArray` which does not correctly handled `S` and `T` (#485) --- src/patharray.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/patharray.js b/src/patharray.js index 03a9b7f..90d0558 100644 --- a/src/patharray.js +++ b/src/patharray.js @@ -166,7 +166,7 @@ SVG.extend(SVG.PathArray, { // upper case if(s == seg[0]){ - if(s == 'M' || s == 'L' || s == 'C' || s == 'Q'){ + if(s == 'M' || s == 'L' || s == 'C' || s == 'Q' || s == 'S' || s == 'T'){ x = seg[paramCnt[seg[0]]-1] y = seg[paramCnt[seg[0]]] }else if(s == 'V'){ -- cgit v1.2.3