From 1f227535ff83d21338075aa96fc6f68ef5a52afc Mon Sep 17 00:00:00 2001 From: cristy Date: Sun, 25 Jan 2015 12:42:56 +0000 Subject: [PATCH] --- coders/gradient.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coders/gradient.c b/coders/gradient.c index 1ffdb2cdd..1baa949b9 100644 --- a/coders/gradient.c +++ b/coders/gradient.c @@ -149,7 +149,7 @@ static Image *ReadGRADIENTImage(const ImageInfo *image_info, } (void) SetImageColorspace(image,start_color.colorspace,exception); (void) CopyMagickString(colorname,"white",MaxTextExtent); - if (GetPixelInfoIntensity(image,&start_color) > (Quantum) (QuantumRange/2)) + if (GetPixelInfoIntensity(image,&start_color) > (QuantumRange/2.0)) (void) CopyMagickString(colorname,"black",MaxTextExtent); if (icc_color == MagickFalse) (void) sscanf(image_info->filename,"%*[^-]-%[^-]",colorname); -- 2.50.1