From: Cristy Date: Thu, 28 Feb 2019 10:40:24 +0000 (-0500) Subject: ... X-Git-Tag: 7.0.8-29~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5d8ed9f565e4a9b5191e86ced207226d0cad082c;p=imagemagick ... --- diff --git a/MagickCore/attribute.c b/MagickCore/attribute.c index b38d7ff8e..84775e1dd 100644 --- a/MagickCore/attribute.c +++ b/MagickCore/attribute.c @@ -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); }