#define ThrowWandException(severity,tag,context) \
{ \
(void) ThrowMagickException(wand->exception,GetMagickModule(),severity, \
- tag,"`%s'",context); \
+ tag,"'%s'",context); \
return(MagickFalse); \
}
\f
if (description == (char *) NULL)
{
(void) ThrowMagickException(wand->exception,GetMagickModule(),WandError,
- "MemoryAllocationFailed","`%s'",wand->name);
+ "MemoryAllocationFailed","'%s'",wand->name);
return((char *) NULL);
}
*description='\0';
if (wand->images == (Image *) NULL)
{
(void) ThrowMagickException(wand->exception,GetMagickModule(),WandError,
- "ContainsNoIterators","`%s'",wand->name);
+ "ContainsNoIterators","'%s'",wand->name);
return(-1);
}
return(GetImageIndexInList(wand->images));
if (wand->images == (Image *) NULL)
{
(void) ThrowMagickException(wand->exception,GetMagickModule(),WandError,
- "ContainsNoImages","`%s'",wand->name);
+ "ContainsNoImages","'%s'",wand->name);
return((double *) NULL);
}
font_metrics=(double *) AcquireQuantumMemory(13UL,sizeof(*font_metrics));
if (wand->images == (Image *) NULL)
{
(void) ThrowMagickException(wand->exception,GetMagickModule(),WandError,
- "ContainsNoImages","`%s'",wand->name);
+ "ContainsNoImages","'%s'",wand->name);
return((double *) NULL);
}
font_metrics=(double *) AcquireQuantumMemory(13UL,sizeof(*font_metrics));
% -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.
%
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 */