From e4affddc309ac777e469d7fb098bb9eea1e22861 Mon Sep 17 00:00:00 2001 From: dirk Date: Mon, 26 Sep 2016 20:25:41 +0200 Subject: [PATCH] Moved writing the alpha channel. --- coders/psd.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/coders/psd.c b/coders/psd.c index 4cf7548a3..5fba21f3c 100644 --- a/coders/psd.c +++ b/coders/psd.c @@ -2637,16 +2637,16 @@ static MagickBooleanType WriteImageChannels(const PSDInfo *psd_info, count+=length; } } - } - if (next_image->alpha_trait != UndefinedPixelTrait) - { - length=WriteOneChannel(psd_info,image_info,image,next_image,AlphaQuantum, - compact_pixels,rows_offset,separate,exception); - if (separate != MagickFalse) - size_offset+=WritePSDSize(psd_info,image,length,size_offset)+2; - else - rows_offset+=offset_length; - count+=length; + if (next_image->alpha_trait != UndefinedPixelTrait) + { + length=WriteOneChannel(psd_info,image_info,image,next_image, + AlphaQuantum,compact_pixels,rows_offset,separate,exception); + if (separate != MagickFalse) + size_offset+=WritePSDSize(psd_info,image,length,size_offset)+2; + else + rows_offset+=offset_length; + count+=length; + } } compact_pixels=(unsigned char *) RelinquishMagickMemory(compact_pixels); if (next_image->colorspace == CMYKColorspace) -- 2.40.0