diff --git a/coders/ps.c b/coders/ps.c
index d8c54a6..d944495 100644
--- a/coders/ps.c
+++ b/coders/ps.c
@@ -1164,7 +1164,7 @@
{
#define WriteRunlengthPacket(image,pixel,length,p) \
{ \
- if ((image->alpha_trait != UndefinedPixelTrait) && \
+ if ((image->alpha_trait == BlendPixelTrait) && \
(GetPixelAlpha(image,p) == (Quantum) TransparentAlpha)) \
{ \
q=PopHexPixel(hex_digits,0xff,q); \
@@ -2002,7 +2002,7 @@
}
else
if ((image->storage_class == DirectClass) ||
- (image->colors > 256) || (image->alpha_trait != UndefinedPixelTrait))
+ (image->colors > 256) || (image->alpha_trait == BlendPixelTrait))
{
/*
Dump DirectClass image.
@@ -2087,7 +2087,7 @@
break;
for (x=0; x < (ssize_t) image->columns; x++)
{
- if ((image->alpha_trait != UndefinedPixelTrait) &&
+ if ((image->alpha_trait == BlendPixelTrait) &&
(GetPixelAlpha(image,p) == (Quantum) TransparentAlpha))
{
q=PopHexPixel(hex_digits,0xff,q);