From: Cristy Date: Wed, 27 Feb 2019 22:28:43 +0000 (-0500) Subject: ... X-Git-Tag: 7.0.8-29~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=303774c3d63e83a6694be34dfb74a59cbfe4abb0;p=imagemagick ... --- diff --git a/MagickCore/attribute.c b/MagickCore/attribute.c index 8d31fcacd..72be7465a 100644 --- a/MagickCore/attribute.c +++ b/MagickCore/attribute.c @@ -133,8 +133,8 @@ typedef struct _EdgeInfo bottom; } EdgeInfo; -static RectangleInfo EdgeGravityGeometry(const Image *image, - const GravityType gravity,const RectangleInfo *edge_geometry) +static void EdgeGravityGeometry(const Image *image, + const GravityType gravity,RectangleInfo *edge_geometry) { RectangleInfo gravity_geometry; @@ -143,10 +143,9 @@ static RectangleInfo EdgeGravityGeometry(const Image *image, Adjust geometry according to gravity setting. */ gravity_geometry=(*edge_geometry); - GravityAdjustGeometry(image->columns,image->rows,gravity,&gravity_geometry); - gravity_geometry.width=edge_geometry->width; - gravity_geometry.height=edge_geometry->height; - return(gravity_geometry); + GravityAdjustGeometry(image->columns,image->rows,gravity,edge_geometry); + edge_geometry->width=gravity_geometry.width; + edge_geometry->height=gravity_geometry.height; } static double GetEdgeBlendFactor(const Image *image,const CacheView *image_view, @@ -214,7 +213,7 @@ static double GetEdgeBlendFactor(const Image *image,const CacheView *image_view, edge_geometry.height=height; edge_geometry.x=x_offset; edge_geometry.y=y_offset; - edge_geometry=EdgeGravityGeometry(image,gravity,&edge_geometry); + EdgeGravityGeometry(image,gravity,&edge_geometry); edge_image=CropImage(image,&edge_geometry,exception); if (edge_image == (Image *) NULL) return(0.0);