Skip Menu |
 

This queue is for tickets about the Imager CPAN distribution.

Report information
The Basics
Id: 60199
Status: resolved
Priority: 0/
Queue: Imager

People
Owner: Nobody in particular
Requestors: mauriceh [...] bigpond.net.au
Cc:
AdminCc:

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



Subject: align_string bug
Date: Tue, 10 Aug 2010 06:56:09 +0800
To: <bug-Imager [...] rt.cpan.org>
From: "Maurice Height" <mauriceh [...] bigpond.net.au>
Download (untitled) / with headers
text/plain 1.1k
I am using Imager version 0.73 on Windows XP and Strawberry Perl 5.10.1.1 I am using Imager to draw graphs as .png files. I use method align_string as in the following code: my($L,$T,$R,$B) = $image->align_string( string => $y_value, font => $font, x => $x_px, y => $y_px, halign => 'right', valign => 'center', ); to label Y axis with scale numbers, but when $y_value == 0 the string is not drawn. The problem appears to be at line #3737 in Imager.pm and the test at line #3739 also fails. 3737 $input{string}||=$input{text}; #?? $input{string} becomes undef when this line is executed - $input{text} is also not defined 3739 unless(exists $input{string}) { #?? this statement failes because $input{string} exists but is undef $self->_set_error("missing required parameter 'string'"); return; } I think the code will be correct if line 3737 is just deleted. Thanks for a very useful module. Regards Maurice Height
Download (untitled) / with headers
text/plain 178b
Show quoted text
> I think the code will be correct if line 3737 is just deleted.
Thanks for your report. This is fixed in svn and will be in the next release of Imager, coming Soon (tm). Tony
Download (untitled) / with headers
text/plain 243b
On Mon Aug 09 18:56:24 2010, mauriceh@bigpond.net.au wrote: Show quoted text
> to label Y axis with scale numbers, but when $y_value == 0 the string
is not Show quoted text
> drawn.
This is fixed in Imager 0.77, which has just been released. Thank you for your report. Tony


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.