From c5e7c80388a59c1be2985f114e53c3b0078d97af Mon Sep 17 00:00:00 2001 From: Cristy Date: Wed, 27 Feb 2019 07:13:28 -0500 Subject: [PATCH] ... --- MagickCore/attribute.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/MagickCore/attribute.c b/MagickCore/attribute.c index 8f48e4456..58bd94fa3 100644 --- a/MagickCore/attribute.c +++ b/MagickCore/attribute.c @@ -314,7 +314,7 @@ MagickExport RectangleInfo GetImageBoundingBox(const Image *image, Trim left edge. */ count.left++; - width=image->columns-count.left-count.right; + width--; edge.left=GetEdgeBlendFactor(image,image_view,NorthWestGravity,1,height, (ssize_t) count.left,(ssize_t) count.top,exception); edge.top=GetEdgeBlendFactor(image,image_view,NorthWestGravity,width,1, @@ -329,7 +329,7 @@ MagickExport RectangleInfo GetImageBoundingBox(const Image *image, Trim right edge. */ count.right++; - width=image->columns-count.left-count.right; + width--; edge.right=GetEdgeBlendFactor(image,image_view,NorthEastGravity,1, height,(ssize_t) count.right,(ssize_t) count.top,exception); edge.top=GetEdgeBlendFactor(image,image_view,NorthWestGravity,width,1, @@ -344,7 +344,7 @@ MagickExport RectangleInfo GetImageBoundingBox(const Image *image, Trim top edge. */ count.top++; - height=image->rows-count.top-count.bottom; + height--; edge.left=GetEdgeBlendFactor(image,image_view,NorthWestGravity,1,height, (ssize_t) count.left,(ssize_t) count.top,exception); edge.right=GetEdgeBlendFactor(image,image_view,NorthEastGravity,1, @@ -359,7 +359,7 @@ MagickExport RectangleInfo GetImageBoundingBox(const Image *image, Trim bottom edge. */ count.bottom++; - height=image->rows-count.top-count.bottom; + height--; edge.left=GetEdgeBlendFactor(image,image_view,NorthWestGravity,1,height, (ssize_t) count.left,(ssize_t) count.top,exception); edge.right=GetEdgeBlendFactor(image,image_view,NorthEastGravity,1, -- 2.40.0