]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Mon, 4 Nov 2013 12:08:18 +0000 (12:08 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Mon, 4 Nov 2013 12:08:18 +0000 (12:08 +0000)
MagickCore/animate.c
MagickCore/display.c
MagickCore/widget.c

index 65d9d97b831241d1b580904cec939a15048d3a63..05a9e641ad4a184f40273bc8a0e9ae8662baf9f5 100644 (file)
@@ -840,8 +840,8 @@ MagickExport void XAnimateBackgroundImage(Display *display,
       */
       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;
       /*
@@ -868,7 +868,7 @@ MagickExport void XAnimateBackgroundImage(Display *display,
     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)
index 6e32a4cce1bdb7b4ba41d2326ccf6b66038dd35d..cc5ca7b211362e2af55abb3e6a6128104e7a7fff 100644 (file)
@@ -9613,7 +9613,7 @@ static void XMakePanImage(Display *display,XResourceInfo *resource_info,
   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);
@@ -10293,13 +10293,13 @@ static Image *XOpenImage(Display *display,XResourceInfo *resource_info,
       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);
@@ -13646,7 +13646,7 @@ static Image *XVisualDirectoryImage(Display *display,
   filelist=(char **) AcquireMagickMemory(sizeof(*filelist));
   if (filelist == (char **) NULL)
     {
-      ThrowXWindowFatalException(ResourceLimitError,"MemoryAllocationFailed",
+      ThrowXWindowException(ResourceLimitError,"MemoryAllocationFailed",
         filenames);
       return((Image *) NULL);
     }
@@ -13656,9 +13656,9 @@ static Image *XVisualDirectoryImage(Display *display,
   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);
     }
@@ -13728,7 +13728,7 @@ static Image *XVisualDirectoryImage(Display *display,
     {
       read_info=DestroyImageInfo(read_info);
       XSetCursorState(display,windows,MagickFalse);
-      ThrowXWindowFatalException(ImageError,"NoImagesWereLoaded",filenames);
+      ThrowXWindowException(ImageError,"NoImagesWereLoaded",filenames);
       return((Image *) NULL);
     }
   /*
@@ -13846,7 +13846,7 @@ MagickExport MagickBooleanType XDisplayBackgroundImage(Display *display,
     }
   if (window_info.id == (Window) NULL)
     {
-      ThrowXWindowFatalException(XServerError,"NoWindowWithSpecifiedIDExists",
+      ThrowXWindowException(XServerError,"NoWindowWithSpecifiedIDExists",
         resources.window_id);
       return(MagickFalse);
     }
@@ -15047,7 +15047,7 @@ MagickExport Image *XDisplayImage(Display *display,XResourceInfo *resource_info,
       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) )
index 052ea049d1706076c11ec693d45603b99a3a7185..a8105bc295d7809b684b4d7227971beaeb626d00 100644 (file)
@@ -2997,7 +2997,7 @@ MagickPrivate int XCommandWidget(Display *display,XWindows *windows,
         sizeof(*selection_info));
       if (selection_info == (XWidgetInfo *) NULL)
         {
-          ThrowXWindowFatalException(ResourceLimitError,
+          ThrowXWindowFatalException(ResourceLimitFatalError,
             "MemoryAllocationFailed","...");
           return(id);
         }