Skip to content

Commit

Permalink
Check for setThickness to avoid error
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiemccarthy committed Aug 26, 2005
1 parent 9b960dd commit 7753e3a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion plugins/HumanConf/Static/Static.pm
Expand Up @@ -503,7 +503,10 @@ sub drawImage {
# Paint the white background.
$image->filledRectangle(0, 0, $width, $height, $background);

$image->setThickness($constants->{hc_q1_linethick} || 1);
if ($image->has('setThickness')) {
# I don't think GD prior to 2.07 has setThickness().
$image->setThickness($constants->{hc_q1_linethick} || 1);
}
my $poly = new GD::Polygon;
if ($width+$height > 100) {
# Draw a grid of lines on the image, same color as the text.
Expand Down

0 comments on commit 7753e3a

Please sign in to comment.