]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <mikayla-grace@urban-warrior.org>
Wed, 27 Feb 2019 20:41:47 +0000 (15:41 -0500)
committerCristy <mikayla-grace@urban-warrior.org>
Wed, 27 Feb 2019 20:41:47 +0000 (15:41 -0500)
MagickCore/attribute.c

index 14b878153ace3e30b3072775a6030c378654e089..c3c0fffc7480eec1b52e83b06fe17c022cded589 100644 (file)
@@ -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)
       {