Hi,
thanks for your patch.
I will release version 2.4.5 within the next days.
Show quoted text > scalar_png() and scalar_jpeg() aren't documented very well (they are in
> doxygen, but not mentioned in pod), they lack a test etc. If you're
> willing to take a more comprehensive patch, I can work on one.
Any help for improving the module is very welcome.
(As I am alone and doing this work during some off hours
any help is appreciated.)
Thanks
Reiner
Am 19.03.2012 22:37, schrieb Florian via RT:
Show quoted text> Queue: Chart
> Ticket<URL:
https://rt.cpan.org/Ticket/Display.html?id=75887>
>
> Hi,
>
> I was just about to report the very same issue :-)
> Here's a patch that we're going to add in the Debian package:
>
> --- a/Chart/Base.pm
> +++ b/Chart/Base.pm
> @@ -481,7 +481,7 @@
> # this method invokes all my private methods to actually
> # draw the chart and plot the data
> # @param[in] $dataref Reference to the data to be plotted
> -# @return Status of the plot
> +# @return png image as a scalar value
> sub scalar_png
> {
> my $self = shift;
> @@ -502,8 +502,7 @@
>
> # returns the png image as a scalar value, so that
> # the programmer/user can do whatever the she/he wants to with it
> - $self->{'gd_obj'}->png();
> - return 1;
> + return $self->{'gd_obj'}->png();
> }
>
> ## @method int jpeg($file,$dataref)
>
>
> scalar_png() and scalar_jpeg() aren't documented very well (they are in
> doxygen, but not mentioned in pod), they lack a test etc. If you're
> willing to take a more comprehensive patch, I can work on one.
>
> BTW this issue breaks Jifty::Plugin::Chart, see RT#75591
>
> Florian
>
>