From 4b5e026c704d777efe9c2ead5dd68ca4fe3b2aa1 Mon Sep 17 00:00:00 2001 From: Cristy Date: Tue, 2 Mar 2021 12:32:22 -0500 Subject: [PATCH] https://github.com/ImageMagick/ImageMagick/issues/3338 --- magick/draw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/magick/draw.c b/magick/draw.c index 71e93c80bf..08ed18c871 100644 --- a/magick/draw.c +++ b/magick/draw.c @@ -2160,7 +2160,7 @@ MagickExport MagickBooleanType DrawGradientImage(Image *image, repeat=fmod(offset,(double) gradient->radius); antialias=repeat+1.0 > gradient->radius ? MagickTrue : MagickFalse; - offset=repeat/gradient->radius; + offset=repeat*PerceptibleReciprocal(gradient->radius); } } for (i=0; i < (ssize_t) gradient->number_stops; i++)