cvs: pear /Image_Text/Image Text.php

From: Date: Wed, 01 Sep 2004 13:07:55 +0000
Subject: cvs: pear /Image_Text/Image Text.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-23553@lists.php.net to get a copy of this message
toby Wed Sep 1 09:07:55 2004 EDT Modified files: /pear/Image_Text/Image Text.php Log: * Fixed bug #2161: Notice. http://cvs.php.net/diff.php/pear/Image_Text/Image/Text.php?r1=1.23&r2=1.24&ty=u Index: pear/Image_Text/Image/Text.php diff -u pear/Image_Text/Image/Text.php:1.23 pear/Image_Text/Image/Text.php:1.24 --- pear/Image_Text/Image/Text.php:1.23 Sun Apr 18 20:41:34 2004 +++ pear/Image_Text/Image/Text.php Wed Sep 1 09:07:55 2004 @@ -500,12 +500,12 @@ } if ($this->_img) { $aaFactor = ($this->options['antialias']) ? 1 : -1; - if (!function_exists('imagecolorallocatealpha')) { - $this->colors[$id] = $aaFactor * imagecolorallocate($this->_img, - $color['r'],$color['g'],$color['b']); - } else { + if (function_exists('imagecolorallocatealpha') && isset($color['a'])) { $this->colors[$id] = $aaFactor * imagecolorallocatealpha($this->_img, $color['r'],$color['g'],$color['b'],$color['a']); + } else { + $this->colors[$id] = $aaFactor * imagecolorallocate($this->_img, + $color['r'],$color['g'],$color['b']); } } return true;

« previous php.pear.cvs (#23553) next »