]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <mikayla-grace@urban-warrior.org>
Fri, 1 Mar 2019 11:05:23 +0000 (06:05 -0500)
committerCristy <mikayla-grace@urban-warrior.org>
Fri, 1 Mar 2019 11:05:23 +0000 (06:05 -0500)
MagickCore/attribute.c

index 84775e1dd46bf29d688b55c0274cefadb7f167d4..98b6a3260bc08ffc088479636623ed6162d84a96 100644 (file)
@@ -346,7 +346,11 @@ MagickExport RectangleInfo GetImageBoundingBox(const Image *image,
   bounds.x=(ssize_t) count.left;
   bounds.y=(ssize_t) count.top;
   if ((bounds.width == 0) || (bounds.height == 0))
-    SetGeometry(image,&bounds);
+    {
+      (void) ThrowMagickException(exception,GetMagickModule(),OptionWarning,
+        "GeometryDoesNotContainImage","`%s'",image->filename);
+      SetGeometry(image,&bounds);
+    }
   return(bounds);
 }
 \f