PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Images » Image_Graph » Bug #2685

Plots do not honor ID tags for fills.

Details

Submitted2004-11-04 01:52 UTC
Fromtesla at och dot nu
Assignednosey
StatusClosed
PackageImage_Graph
PHP Version4.3.9
OSSlackware GNU/Linux
Roadmaps(Not assigned)

Comments

[2004-11-04 01:52 UTC] tesla at och dot nu

Description:
------------
The Image_Graph_Plot_XXX classes do not honor the
ID tag for fillstyles due to missing to supply
the ID tag to the _getFillStyle() method.

Reproduce code:
---------------
Proposed sample patch for Image_Graph_Plot_Bar:

112c112
< ImageFilledRectangle($this->_canvas(), min($x1, $x2), min($y1, $y2), max($x1, $x2), max($y1, $y2), $this->_getFillStyle());
---
> ImageFilledRectangle($this->_canvas(), min($x1, $x2), min($y1, $y2), max($x1, $x2), max($y1, $y2), $this->_getFillStyle($point['ID']));

[2004-11-04 07:56 UTC] pear dot nosey at veggerby dot dk

That is indeed correct! The fix will be applied to the code and as soon as somebody grants my CVS access it will be posted!

Thnx for your reportings

[2004-11-04 10:58 UTC] tesla at och dot nu

Glad to be of help. :-)