From: cristy Date: Wed, 19 Jan 2011 19:41:27 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~8283 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=520bce88fc4ffc5f3759eb59a598f5eac0a092b4;p=imagemagick --- diff --git a/coders/aai.c b/coders/aai.c index abdb288e9..c56312c43 100644 --- a/coders/aai.c +++ b/coders/aai.c @@ -175,8 +175,8 @@ static Image *ReadAAIImage(const ImageInfo *image_info,ExceptionInfo *exception) q->blue=ScaleCharToQuantum(*p++); q->green=ScaleCharToQuantum(*p++); q->red=ScaleCharToQuantum(*p++); - if (*p == 0) - *p=1; + if (*p == 254) + *p=255; q->opacity=(Quantum) (QuantumRange-ScaleCharToQuantum(*p)); if (q->opacity != OpaqueOpacity) image->matte=MagickTrue;