From 645e41e2243256524e059ef83ff47d57f4621920 Mon Sep 17 00:00:00 2001 From: Cristy Date: Sat, 9 Feb 2019 07:20:35 -0500 Subject: [PATCH] Transient bug correctly interpretting subimage ranges, e.g. image.gif[2-3] --- MagickCore/constitute.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MagickCore/constitute.c b/MagickCore/constitute.c index 2fd5f9878..e737d5753 100644 --- a/MagickCore/constitute.c +++ b/MagickCore/constitute.c @@ -638,7 +638,7 @@ MagickExport Image *ReadImage(const ImageInfo *image_info, *clones; n=sscanf(read_info->scenes,"%d-%d",&first_scene,&last_scene); - if (n != 2) + if (n == 2) { clones=CloneImages(image,read_info->scenes,exception); if (clones == (Image *) NULL) -- 2.40.0