From bd70b1da66c33822bf737f34e8a7a61479c592d2 Mon Sep 17 00:00:00 2001 From: cristy Date: Thu, 27 Nov 2014 18:32:41 +0000 Subject: [PATCH] --- MagickCore/pixel-accessor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MagickCore/pixel-accessor.h b/MagickCore/pixel-accessor.h index d0e6aa6a3..b4b57bf76 100644 --- a/MagickCore/pixel-accessor.h +++ b/MagickCore/pixel-accessor.h @@ -40,7 +40,7 @@ static inline Quantum GetPixela(const Image *restrict image, static inline Quantum GetPixelAlpha(const Image *restrict image, const Quantum *restrict pixel) { - if (image->channel_map[AlphaPixelChannel].traits == UndefinedPixelTrait) + if (image->channel_map[AlphaPixelChannel].traits != BlendPixelTrait) return(OpaqueAlpha); return(pixel[image->channel_map[AlphaPixelChannel].offset]); } -- 2.40.0