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);