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

Div by zero in AggMathStroke.StrokeCalcCap #12

Open
studylamp opened this issue Oct 6, 2017 · 1 comment
Open

Div by zero in AggMathStroke.StrokeCalcCap #12

studylamp opened this issue Oct 6, 2017 · 1 comment
Assignees

Comments

@studylamp
Copy link

Had a case during some testing where StrokeCalcCap got called with Len = 0. This if course caused a division by zero crash on Da := 1 / Len.

As a hack fix, I just added a test to exit the procedure if Len is 0, but I am not sure what the implications of this are.

@CWBudde CWBudde self-assigned this Oct 10, 2017
@CWBudde
Copy link
Owner

CWBudde commented Oct 10, 2017

At the moment I don't have time to look into the issue, but maybe you can report back (or even send a PR) once you know whether this fix seems to work or not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants