From 2253f7dbf7d8befe9d9cc45a3d0492f1dff6c97d Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Sun, 1 May 2005 05:45:55 +0000 Subject: [PATCH] - #32891, init old y positions to non possible values. -1 being used if the center start a (x,0) --- ext/gd/libgd/gd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/gd/libgd/gd.c b/ext/gd/libgd/gd.c index c82ac31c00..766c679983 100644 --- a/ext/gd/libgd/gd.c +++ b/ext/gd/libgd/gd.c @@ -1737,8 +1737,8 @@ void gdImageFilledEllipse (gdImagePtr im, int mx, int my, int w, int h, int c) rx = r << 1; ry = 0; x = a; - old_y2=-1; - old_y1=-1; + old_y2=-2; + old_y1=-2; while (x > 0){ if (r > 0) { my1++;my2--; -- 2.40.0