From: anthony Date: Sun, 18 Mar 2012 10:54:08 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~6026 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2778ac987fc7bb50ab68dbc4a55a21229fe6e4f3;p=imagemagick --- diff --git a/MagickWand/magick-wand.c b/MagickWand/magick-wand.c index dc91a5cd7..a7fe86b10 100644 --- a/MagickWand/magick-wand.c +++ b/MagickWand/magick-wand.c @@ -904,7 +904,7 @@ WandExport void MagickSetFirstIterator(MagickWand *wand) % -1 being the last image in the wand. % % If the index is invalid (range too large for number of images in wand) -% the function will return magickFalse, but no 'exception' will be raised, +% the function will return MagickFalse, but no 'exception' will be raised, % as it is not actually an error. In that case the current image will not % change. % @@ -941,10 +941,7 @@ WandExport MagickBooleanType MagickSetIteratorIndex(MagickWand *wand, return(MagickFalse); image=GetImageFromList(wand->images,index); if (image == (Image *) NULL) - { - InheritException(wand->exception,&wand->images->exception); - return(MagickFalse); - } + return(MagickFalse); /* this is not an exception! Just range error. */ wand->images=image; wand->insert_before=MagickFalse; /* Insert/Add after (this) image */ wand->image_pending=MagickFalse; /* NextImage will set next image */