From 74f81b1bbea29826d25c08d851854a6b5080c981 Mon Sep 17 00:00:00 2001 From: Cristy Date: Thu, 19 Apr 2018 19:47:51 -0400 Subject: [PATCH] ... --- coders/sgi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/coders/sgi.c b/coders/sgi.c index 142035d9f..e45792dfc 100644 --- a/coders/sgi.c +++ b/coders/sgi.c @@ -373,9 +373,10 @@ static Image *ReadSGIImage(const ImageInfo *image_info,ExceptionInfo *exception) if (image->scene >= (image_info->scene+image_info->number_scenes-1)) break; status=SetImageExtent(image,image->columns,image->rows,exception); + if (status != MagickFalse) + status=ResetImagePixels(image,exception); if (status == MagickFalse) return(DestroyImageList(image)); - (void) SetImageBackgroundColor(image,exception); /* Allocate SGI pixels. */ -- 2.40.0