From e4a0029e4df9a99c9e46486578eea546d9fa0edb Mon Sep 17 00:00:00 2001 From: Cristy Date: Thu, 19 Apr 2018 19:49:09 -0400 Subject: [PATCH] ... --- coders/xcf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/coders/xcf.c b/coders/xcf.c index 8ffe79323..8248377ba 100644 --- a/coders/xcf.c +++ b/coders/xcf.c @@ -930,6 +930,8 @@ static MagickBooleanType ReadOneLayer(const ImageInfo *image_info,Image* image, outLayer->width=outLayer->image->columns; status=SetImageExtent(outLayer->image,outLayer->image->columns, outLayer->image->rows,exception); + if (status != MagickFalse) + status=ResetImagePixels(image,exception); if (status == MagickFalse) { outLayer->image=DestroyImageList(outLayer->image); @@ -943,7 +945,6 @@ static MagickBooleanType ReadOneLayer(const ImageInfo *image_info,Image* image, outLayer->image->background_color.alpha_trait=BlendPixelTrait; outLayer->image->alpha_trait=BlendPixelTrait; } - (void) SetImageBackgroundColor(outLayer->image,exception); InitXCFImage(outLayer,exception); -- 2.40.0