]> granicus.if.org Git - php/commitdiff
- ws
authorPierre Joye <pajoye@php.net>
Sat, 4 Nov 2006 14:22:23 +0000 (14:22 +0000)
committerPierre Joye <pajoye@php.net>
Sat, 4 Nov 2006 14:22:23 +0000 (14:22 +0000)
ext/gd/libgd/gd.c

index 43a45939af75f0081cb789ea15999fb9474ee15b..79897145ca9c12c7119f63d2a73d343f084ae61a 100644 (file)
@@ -1042,10 +1042,7 @@ void gdImageLine (gdImagePtr im, int x1, int y1, int x2, int y2, int color)
                        gdImageSetPixel(im, x1,y1, color);
                }
                return;
-       }
-
-       /* Horizontal */
-       if (y1==y2) {
+       } else if (y1==y2) { /* Horizontal */
                if (x2 < x1) {
                        t = x2;
                        x2 = x1;