mirror of
https://github.com/foliojs/pdfkit.git
synced 2025-12-08 20:15:54 +00:00
Merge pull request #119 from ef4/path-parser-fix
Fixed path parsing bug
This commit is contained in:
commit
96bba3a035
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user