]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <mikayla-grace@urban-warrior.org>
Thu, 28 Feb 2019 10:40:24 +0000 (05:40 -0500)
committerCristy <mikayla-grace@urban-warrior.org>
Thu, 28 Feb 2019 10:40:24 +0000 (05:40 -0500)
MagickCore/attribute.c

index b38d7ff8ef0f595adac4682a5e61509ad3d1c2c3..84775e1dd46bf29d688b55c0274cefadb7f167d4 100644 (file)
@@ -345,7 +345,7 @@ MagickExport RectangleInfo GetImageBoundingBox(const Image *image,
   image_view=DestroyCacheView(image_view);
   bounds.x=(ssize_t) count.left;
   bounds.y=(ssize_t) count.top;
-  if (blend_factor < threshold)
+  if ((bounds.width == 0) || (bounds.height == 0))
     SetGeometry(image,&bounds);
   return(bounds);
 }