From: anthony Date: Sun, 18 Mar 2012 03:54:59 +0000 (+0000) Subject: Removed 'exception' for Index -- it is NOT an error! X-Git-Tag: 7.0.1-0~6027 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=879f28455cbd24163ab8f266d4bbdeb139d122f2;p=imagemagick Removed 'exception' for Index -- it is NOT an error! --- diff --git a/MagickWand/magick-wand.c b/MagickWand/magick-wand.c index e2ddd935e..dc91a5cd7 100644 --- a/MagickWand/magick-wand.c +++ b/MagickWand/magick-wand.c @@ -942,8 +942,7 @@ WandExport MagickBooleanType MagickSetIteratorIndex(MagickWand *wand, image=GetImageFromList(wand->images,index); if (image == (Image *) NULL) { - (void) ThrowMagickException(wand->exception,GetMagickModule(),WandError, - "NoSuchImage","`%s'",wand->name); + InheritException(wand->exception,&wand->images->exception); return(MagickFalse); } wand->images=image;