]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Wed, 19 Jan 2011 19:41:27 +0000 (19:41 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Wed, 19 Jan 2011 19:41:27 +0000 (19:41 +0000)
coders/aai.c

index abdb288e97edc7fa36de6343b2c91b15f45b86b0..c56312c432b8203f5abaee54b15c562eb8f59f3d 100644 (file)
@@ -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;