]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authoranthony <anthony@git.imagemagick.org>
Sun, 18 Mar 2012 10:54:08 +0000 (10:54 +0000)
committeranthony <anthony@git.imagemagick.org>
Sun, 18 Mar 2012 10:54:08 +0000 (10:54 +0000)
MagickWand/magick-wand.c

index dc91a5cd72275a7205b16dbbcd972c1ca1c2a02f..a7fe86b1092e30f424541b74c8e62debd72663f5 100644 (file)
@@ -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 */