TBarChart crashed with DivisionByZero
Original Reporter info from Mantis: montanus_@web.de
-
Reporter name: Johannes Müller
Original Reporter info from Mantis: montanus_@web.de
- Reporter name: Johannes Müller
Description:
A (very) long Label of an Item in TBarChart caused a division by zero.
It is possible, that the following Code makes NScaleLines equal zero:
NScaleLines:=(w-j-6) div (2*j);
Then the application crash at Line 306 at charts.pp:
ScaleUnits:=(Vmax div NScaleLines) +1;
Attached is a small Patch, to prevent this Division by Zero.
Mantis conversion info:
- Mantis ID: 14190
- Version: 0.9.27 (SVN)
- Fixed in revision: 21853 (#ef0e3371).
- Target version: 0.9.30