[reportlab-users] Minor bug in spider.py, with patch
Robin Becker
robin at reportlab.com
Wed Jun 15 10:03:54 EDT 2005
Max M wrote:
> In <site-packages>/reportlab/graphics/charts/spider.py there is a minor
> division
> by zero bug.
>
> If all elemnents are 0.0, theMax will also be 0.0. That will make this
> line fail
> with a zero division error:
>
> scaledRow.append(element / theMax)
>
..... thanks for the fix, I think it will be sufficient to set theMax to 1.0 if
it is zero.
--
Robin Becker
More information about the reportlab-users
mailing list