Merge pull request #119 from ef4/path-parser-fix

Fixed path parsing bug
This commit is contained in:
Devon Govett 2013-07-31 21:05:20 -07:00
commit 96bba3a035

View File

@ -45,7 +45,7 @@ class SVGPath
cmd = c
else if c in [" ", ","] or (c is "-" and curArg.length > 0) or (c is "." and foundDecimal)
else if c in [" ", ","] or (c is "-" and curArg.length > 0 and curArg[curArg.length-1]!='e') or (c is "." and foundDecimal)
continue if curArg.length is 0
if args.length is params # handle reused commands