Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.5.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  


 [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] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!