From 226fb03f844b3f45de8431065bcc380ea0b2e335 Mon Sep 17 00:00:00 2001 From: cristy Date: Fri, 20 Mar 2015 21:37:53 +0000 Subject: [PATCH] --- MagickCore/layer.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/MagickCore/layer.c b/MagickCore/layer.c index 1df41a539..451292c72 100644 --- a/MagickCore/layer.c +++ b/MagickCore/layer.c @@ -832,6 +832,16 @@ MagickExport Image *CompareImagesLayers(const Image *image, next=GetNextImageInList(next); for ( ; next != (const Image *) NULL; next=GetNextImageInList(next)) { + if ((bounds[i].x == -1) && (bounds[i].y == -1) && + (bounds[i].width == 1) && (bounds[i].height == 1)) + { + /* + An empty frame is returned from CompareImageBounds(), which means the + current frame is identical to the previous frame. + */ + i++; + continue; + } image_a=CloneImage(next,0,0,MagickTrue,exception); if (image_a == (Image *) NULL) break; -- 2.50.1