From: cristy Date: Sat, 30 Apr 2011 17:40:43 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~7605 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b982c83ff1d8860e3aeb699b95389d6cbd29da5c;p=imagemagick --- diff --git a/magick/pixel-private.h b/magick/pixel-private.h index d9b063afe..383a67a56 100644 --- a/magick/pixel-private.h +++ b/magick/pixel-private.h @@ -78,8 +78,7 @@ static inline void SetMagickPixelPacket(const Image *image, pixel->green=(MagickRealType) color->green; pixel->blue=(MagickRealType) color->blue; pixel->opacity=(MagickRealType) color->opacity; - if (((image->colorspace == CMYKColorspace) || - (image->storage_class == PseudoClass)) && + if ((image->colorspace == CMYKColorspace) && (index != (const IndexPacket *) NULL)) pixel->index=(MagickRealType) *index; }