AggPasMod icon indicating copy to clipboard operation
AggPasMod copied to clipboard

Div by zero in AggMathStroke.StrokeCalcCap

Open studylamp opened this issue 8 years ago • 1 comments

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.

studylamp avatar Oct 06 '17 21:10 studylamp

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.

CWBudde avatar Oct 10 '17 14:10 CWBudde