- (void) SetImageColorspace(composite_image,image->colorspace,exception);
- if (image->alpha_trait == UndefinedPixelTrait)
- (void) SetImageAlphaChannel(image,SetAlphaChannel,exception);
- if (composite_image->alpha_trait == UndefinedPixelTrait)
- (void) SetImageAlphaChannel(composite_image,SetAlphaChannel,exception);
-if (0)
+ (void) SetImageColorspace(source_image,image->colorspace,exception);
+ if ((image->alpha_trait != UndefinedPixelTrait) &&
+ (source_image->alpha_trait == UndefinedPixelTrait))
+ (void) SetImageAlphaChannel(source_image,SetAlphaChannel,exception);