From: Cristy Date: Wed, 27 Feb 2019 20:41:47 +0000 (-0500) Subject: ... X-Git-Tag: 7.0.8-29~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0b662093a790b16ef9dc04c270375f4390398e42;p=imagemagick ... --- diff --git a/MagickCore/attribute.c b/MagickCore/attribute.c index 14b878153..c3c0fffc7 100644 --- a/MagickCore/attribute.c +++ b/MagickCore/attribute.c @@ -299,7 +299,7 @@ MagickExport RectangleInfo GetImageBoundingBox(const Image *image, blend_factor=GetMinBlendFactor(&edge); for ( ; blend_factor < threshold; blend_factor=GetMinBlendFactor(&edge)) { - if ((width == 0) || (height == 0)) + if ((bounds.width == 0) || (bounds.height == 0)) break; if (fabs(edge.left-blend_factor) < MagickEpsilon) {