]> granicus.if.org Git - php/commitdiff
Fixed logic bug introduced by me. Bug: #13796
authorfoobar <sniper@php.net>
Wed, 24 Oct 2001 10:42:31 +0000 (10:42 +0000)
committerfoobar <sniper@php.net>
Wed, 24 Oct 2001 10:42:31 +0000 (10:42 +0000)
ext/gd/gd.c

index 3cf5c6eaf7a20ae3da2864c4c18cbce8fd58d854..ebc4aa41e34c0a5edcdd2256f0a0a70575b09eb4 100644 (file)
@@ -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