Skip Menu |

This queue is for tickets about the Chart CPAN distribution.

Report information
The Basics
Id: 27103
Status: new
Priority: 0/
Queue: Chart

People
Owner: Nobody in particular
Requestors: chris+rt [...] chrisdolan.net
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 2.4.1
Fixed in: (no value)



Subject: [PATCH] scalar_png lacks _set_colors() call
The scalar_png method generates images with black backgrounds. The fix is extremely simple, as shown in the patch below. Chris diff -u /Users/chris/perl/lib/perl5/site_perl/Chart/Base.pm inc/Chart/Base.pm --- /Users/chris/perl/lib/perl5/site_perl/Chart/Base.pm 2006-01-24 06:32:09.000000000 -0600 +++ inc/Chart/Base.pm 2007-05-12 00:57:22.000000000 -0500 @@ -311,6 +311,9 @@ my $self = shift; my $dataref = shift; + # allocate the background color + $self->_set_colors(); + # make sure the object has its copy of the data $self->_copy_data($dataref);