Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.3.5

Bug #10236 Pie Chart Shading Error when datapoint has 0 value
Submitted: 2007-03-01 12:46 UTC Modified: 2007-06-22 15:16 UTC
From: peter_wake at hotmail dot com Assigned: nosey
Status: Closed Package: Image_Canvas (version 0.3.0)
PHP Version: Irrelevant OS: Irrelevant
Roadmaps: (Not assigned)    
Subscription  


 [2007-03-01 12:46 UTC] peter_wake at hotmail dot com (Peter Wake)
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) {

Comments

 [2007-03-04 14:43 UTC] peter_wake at hotmail dot com
Changed bug summary name
 [2007-06-22 15:16 UTC] nosey (Jesper Veggerby)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.