From: foobar Date: Wed, 24 Oct 2001 10:42:31 +0000 (+0000) Subject: Fixed logic bug introduced by me. Bug: #13796 X-Git-Tag: POST_PARAMETER_PARSING_API~17 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=35ace375a98b650b2ab2598fdb8898975c323725;p=php Fixed logic bug introduced by me. Bug: #13796 --- diff --git a/ext/gd/gd.c b/ext/gd/gd.c index 3cf5c6eaf7..ebc4aa41e3 100644 --- a/ext/gd/gd.c +++ b/ext/gd/gd.c @@ -2761,11 +2761,10 @@ static void php_imagettftext_common(INTERNAL_FUNCTION_PARAMETERS, int mode, int } else # endif + # if HAVE_GD_STRINGFT error = gdImageStringFT(im, brect, col, fontname, ptsize, angle, x, y, str); -# endif - -# if HAVE_GD_STRINGTTF +# elif HAVE_GD_STRINGTTF error = gdImageStringTTF(im, brect, col, fontname, ptsize, angle, x, y, str); # endif