From: dirk Date: Tue, 8 Apr 2014 04:26:07 +0000 (+0000) Subject: Fixed saving visibility of layer. X-Git-Tag: 7.0.1-0~2477 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=48febd6e7503d789df337420cf150dfbb49726b5;p=imagemagick Fixed saving visibility of layer. --- diff --git a/coders/psd.c b/coders/psd.c index b250c14ff..86ffbe195 100644 --- a/coders/psd.c +++ b/coders/psd.c @@ -2702,7 +2702,8 @@ static MagickBooleanType WritePSDImage(const ImageInfo *image_info,Image *image, CompositeOperatorToPSDBlendMode(next_image->compose)); (void) WriteBlobByte(image,255); /* layer opacity */ (void) WriteBlobByte(image,0); - (void) WriteBlobByte(image,1); /* layer propertys - visible, etc. */ + (void) WriteBlobByte(image,next_image->compose==NoCompositeOp ? + 1 << 0x02 : 1); /* layer properties - visible, etc. */ (void) WriteBlobByte(image,0); property=(const char *) GetImageProperty(next_image,"label",exception); if (property == (const char *) NULL)