]> granicus.if.org Git - imagemagick/commitdiff
Removed 'exception' for Index -- it is NOT an error!
authoranthony <anthony@git.imagemagick.org>
Sun, 18 Mar 2012 03:54:59 +0000 (03:54 +0000)
committeranthony <anthony@git.imagemagick.org>
Sun, 18 Mar 2012 03:54:59 +0000 (03:54 +0000)
MagickWand/magick-wand.c

index e2ddd935eba606b8775d4bd758ddcd7f48a19f3a..dc91a5cd72275a7205b16dbbcd972c1ca1c2a02f 100644 (file)
@@ -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;