From: dirk Date: Tue, 5 Jan 2016 13:04:27 +0000 (+0100) Subject: Replace fixes. X-Git-Tag: 7.0.1-0~373 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=038f9eed0f96d4fdf925391a8dcb2e71ddce0d28;p=imagemagick Replace fixes. --- diff --git a/MagickCore/enhance.c b/MagickCore/enhance.c index 461a12901..de27ae439 100644 --- a/MagickCore/enhance.c +++ b/MagickCore/enhance.c @@ -3468,7 +3468,7 @@ MagickExport MagickBooleanType NegateImage(Image *image, j; if ((GetPixelReadMask(image,q) == 0) || - IsPixelGray(image,q != MagickFalse)) + IsPixelGray(image,q) != MagickFalse) { q+=GetPixelChannels(image); continue; diff --git a/MagickCore/identify.c b/MagickCore/identify.c index 1e0827248..2afc994bd 100644 --- a/MagickCore/identify.c +++ b/MagickCore/identify.c @@ -974,7 +974,7 @@ MagickExport MagickBooleanType IdentifyImage(Image *image,FILE *file, else { artifact=GetImageArtifact(image,"identify:unique-colors"); - if (IsStringTrue(artifact != MagickFalse)) + if (IsStringTrue(artifact) != MagickFalse) (void) FormatLocaleFile(file," Colors: %.20g\n",(double) GetNumberColors(image,(FILE *) NULL,exception)); } diff --git a/MagickCore/property.c b/MagickCore/property.c index a13bf5c5e..0655e2a16 100644 --- a/MagickCore/property.c +++ b/MagickCore/property.c @@ -2401,7 +2401,7 @@ static const char *GetMagickPropertyLetter(ImageInfo *image_info, WarnNoImageReturn("\"%%%c\"",letter); colorspace=image->colorspace; - if (SetImageGray(image,exception != MagickFalse)) + if (SetImageGray(image,exception) != MagickFalse) colorspace=GRAYColorspace; /* FUTURE: this is IMv6 not IMv7 */ (void) FormatLocaleString(value,MagickPathExtent,"%s %s %s", CommandOptionToMnemonic(MagickClassOptions,(ssize_t) image->storage_class),