From: Dirk Lemstra Date: Tue, 4 Dec 2018 21:33:33 +0000 (+0100) Subject: Make sure the mipmaps have the same alpha trait #1405. X-Git-Tag: 7.0.8-16~32 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5eb5f1f40ade6b39cacc7ad80d489ce09212bf92;p=imagemagick Make sure the mipmaps have the same alpha trait #1405. --- diff --git a/coders/dds.c b/coders/dds.c index 44930e637..77b3efb9c 100644 --- a/coders/dds.c +++ b/coders/dds.c @@ -1962,8 +1962,9 @@ static MagickBooleanType ReadMipmaps(const ImageInfo *image_info,Image *image, for (i = 1; (i < (ssize_t) dds_info->mipmapcount) && w && h; i++) { AcquireNextImage(image_info,image,exception); - if (GetNextImageInList(image) == (Image *) NULL) + if (image->next == (Image *) NULL) return(MagickFalse); + image->next->alpha_trait=image->alpha_trait; image=SyncNextImageInList(image); status=SetImageExtent(image,w,h,exception); if (status == MagickFalse)