*/
map_info=XAllocStandardColormap();
if (map_info == (XStandardColormap *) NULL)
- ThrowXWindowFatalException(ResourceLimitError,"MemoryAllocationFailed",
- images->filename);
+ ThrowXWindowFatalException(ResourceLimitFatalError,
+ "MemoryAllocationFailed",images->filename);
map_info->colormap=(Colormap) NULL;
pixel.pixels=(unsigned long *) NULL;
/*
XDestroyWindowColors(display,root_window);
coalesce_image=CoalesceImages(images,exception);
if (coalesce_image == (Image *) NULL)
- ThrowXWindowFatalException(ResourceLimitError,"MemoryAllocationFailed",
+ ThrowXWindowFatalException(ResourceLimitFatalError,"MemoryAllocationFailed",
images->filename);
images=coalesce_image;
if (resources.map_type == (char *) NULL)
status=XMakeImage(display,resource_info,&windows->pan,image,
windows->pan.width,windows->pan.height,exception);
if (IfMagickFalse(status) )
- ThrowXWindowFatalException(ResourceLimitError,
+ ThrowXWindowException(ResourceLimitError,
"MemoryAllocationFailed",image->filename);
(void) XSetWindowBackgroundPixmap(display,windows->pan.id,
windows->pan.pixmap);
status=XGetCommand(display,windows->image.id,&files,&count);
if (status == 0)
{
- ThrowXWindowFatalException(XServerError,"UnableToGetProperty","...");
+ ThrowXWindowException(XServerError,"UnableToGetProperty","...");
return((Image *) NULL);
}
filelist=(char **) AcquireQuantumMemory((size_t) count,sizeof(*filelist));
if (filelist == (char **) NULL)
{
- ThrowXWindowFatalException(ResourceLimitError,
+ ThrowXWindowException(ResourceLimitError,
"MemoryAllocationFailed","...");
(void) XFreeStringList(files);
return((Image *) NULL);
filelist=(char **) AcquireMagickMemory(sizeof(*filelist));
if (filelist == (char **) NULL)
{
- ThrowXWindowFatalException(ResourceLimitError,"MemoryAllocationFailed",
+ ThrowXWindowException(ResourceLimitError,"MemoryAllocationFailed",
filenames);
return((Image *) NULL);
}
if (IfMagickFalse(status) || (number_files == 0))
{
if (number_files == 0)
- ThrowXWindowFatalException(ImageError,"NoImagesWereFound",filenames)
+ ThrowXWindowException(ImageError,"NoImagesWereFound",filenames)
else
- ThrowXWindowFatalException(ResourceLimitError,"MemoryAllocationFailed",
+ ThrowXWindowException(ResourceLimitError,"MemoryAllocationFailed",
filenames);
return((Image *) NULL);
}
{
read_info=DestroyImageInfo(read_info);
XSetCursorState(display,windows,MagickFalse);
- ThrowXWindowFatalException(ImageError,"NoImagesWereLoaded",filenames);
+ ThrowXWindowException(ImageError,"NoImagesWereLoaded",filenames);
return((Image *) NULL);
}
/*
}
if (window_info.id == (Window) NULL)
{
- ThrowXWindowFatalException(XServerError,"NoWindowWithSpecifiedIDExists",
+ ThrowXWindowException(XServerError,"NoWindowWithSpecifiedIDExists",
resources.window_id);
return(MagickFalse);
}
display_image->filename);
status=XMakeImage(display,resource_info,&windows->magnify,(Image *) NULL,
windows->magnify.width,windows->magnify.height,exception);
- if (IfMagickFalse(status) )
+ if (IfMagickFalse(status))
ThrowXWindowFatalException(XServerFatalError,"UnableToCreateXImage",
display_image->filename);
if (IfMagickTrue(windows->magnify.mapped) )