Closed (fixed)
Project:
Textimage
Version:
6.x-2.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Dec 2009 at 12:55 UTC
Updated:
5 Jan 2010 at 23:06 UTC
There is a wrong comparison operator at line 729 of textimage.module:
if ($rotation !== 0) { // wrong!
$image = imagerotate($image, $rotation, 0);
}
The operator "!==" compares types, not values. "!=" would be correct. The result is, that imagerotate() is always called, which causes an error on my debian system as it doesn't have imagerotate(). Btw, this bug with bundled gd2 versions should be mentioned on the Module page.
if ($rotation != 0) { // correct
$image = imagerotate($image, $rotation, 0);
}
Comments
Comment #1
decipheredThis was fixed in a previous development build, but thank you for creating the issue.
Cheers,
Deciphered.