Home » Images » Image_Canvas » Bug #10236
Pie Chart Shading Error when datapoint has 0 value
Details
| Submitted | 2007-03-01 17:46 UTC |
|---|---|
| From | peter_wake at hotmail dot com |
| Assigned | nosey |
| Status | Closed |
| Package | Image_Canvas |
| PHP Version | Irrelevant |
| OS | Irrelevant |
| Roadmaps | (Not assigned) |
Comments
[2007-03-01 17:46 UTC] peter_wake at hotmail dot com
Description:
------------
When datapoints have 0 value, causes error in line 1213:
imagefilledpolygon(): You must have at least 3 points in your array
The solution is to change line 1213 to:
if (($fill = $this->_getFillStyle($fillColor, $x - $rx - 1, $y - $ry - 1, $x + $rx + 1, $y + $ry + 1)) !== false && count($polygon)>2) {
[2007-03-04 19:43 UTC] peter_wake at hotmail dot com
Changed bug summary name