From: cristy Date: Wed, 7 Apr 2010 19:52:52 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~9683 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fb3a59bdcf2e2dc2521c18f1c3f107bd43acb751;p=imagemagick --- diff --git a/coders/psd.c b/coders/psd.c index 1338be2ed..24baab042 100644 --- a/coders/psd.c +++ b/coders/psd.c @@ -1995,6 +1995,7 @@ static MagickBooleanType WritePSDImage(const ImageInfo *image_info,Image *image) if (icc_profile != (StringInfo *) NULL) length+=PSDQuantum(GetStringInfoLength(icc_profile))+12; (void) WriteBlobMSBLong(image,length); + WriteResolutionResourceBlock(image); if (bim_profile != (StringInfo *) NULL) (void) WriteBlob(image,GetStringInfoLength(bim_profile),GetStringInfoDatum( bim_profile)); @@ -2009,7 +2010,6 @@ static MagickBooleanType WritePSDImage(const ImageInfo *image_info,Image *image) if (length != GetStringInfoLength(icc_profile)) (void) WriteBlobByte(image,0); } - WriteResolutionResourceBlock(image); compute_layer_info: layer_count = 0;