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

Bug #10236 Pie Chart Shading Error when datapoint has 0 value
Submitted: 2007-03-01 17:46 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  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 41 - 2 = ?

 
 [2007-03-01 17: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 19:43 UTC] peter_wake at hotmail dot com
Changed bug summary name
 [2007-06-22 20: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.