From: cristy Date: Fri, 16 Apr 2010 15:52:04 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~9639 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=42a6bc8d18d8061866d518cf1dcfc75e82e611c4;p=imagemagick --- diff --git a/coders/jp2.c b/coders/jp2.c index 890e45069..055c88d73 100644 --- a/coders/jp2.c +++ b/coders/jp2.c @@ -854,7 +854,7 @@ static MagickBooleanType WriteJP2Image(const ImageInfo *image_info,Image *image) ThrowWriterException(DelegateError,"UnableToManageJP2Stream"); number_components=image->matte ? 4UL : 3UL; if ((image_info->type != TrueColorType) && - IsGrayImage(image,&image->exception)) + (IsGrayImage(image,&image->exception) != MagickFalse)) number_components=1; if ((image->columns != (unsigned int) image->columns) || (image->rows != (unsigned int) image->rows))