Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Path arguments separated by minus sign are treated as one #18

Closed
meyfa opened this issue Dec 6, 2016 · 0 comments
Closed

Path arguments separated by minus sign are treated as one #18

meyfa opened this issue Dec 6, 2016 · 0 comments
Labels
bug Something isn't working

Comments

@meyfa
Copy link
Owner

meyfa commented Dec 6, 2016

In SVG, strings like 36.85-24.33 are defined unambiguously as the two arguments 36.85 and -24.33, but due to the fact that path arguments are not matched but split, PHP-SVG would treat them as 36.85-24.33 and then fail when parsing it as a number. Similarly to #17, this results in missing arguments and/or commands as well as errors when rasterizing.

@meyfa meyfa added the bug Something isn't working label Dec 6, 2016
@meyfa meyfa closed this as completed in 2dedb4e Dec 8, 2016
meyfa added a commit that referenced this issue Jan 31, 2018
Makes sure (1) scientific notation and (2) minus signs between arguments do not break path parsing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant