From: Cristy Date: Thu, 28 Feb 2019 00:13:25 +0000 (-0500) Subject: ... X-Git-Tag: 7.0.8-29~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e36963eeb9a206d98602dc058dd76a01721336a5;p=imagemagick ... --- diff --git a/MagickCore/attribute.c b/MagickCore/attribute.c index 662222133..b38d7ff8e 100644 --- a/MagickCore/attribute.c +++ b/MagickCore/attribute.c @@ -133,21 +133,6 @@ typedef struct _EdgeInfo bottom; } EdgeInfo; -static void EdgeGravityGeometry(const Image *image,const GravityType gravity, - RectangleInfo *edge_geometry) -{ - RectangleInfo - gravity_geometry; - - /* - Adjust geometry according to gravity setting. - */ - gravity_geometry=(*edge_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, const GravityType gravity,const size_t width,const size_t height, const ssize_t x_offset,const ssize_t y_offset,ExceptionInfo *exception) @@ -213,7 +198,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; - EdgeGravityGeometry(image,gravity,&edge_geometry); + GravityAdjustGeometry(image->columns,image->rows,gravity,&edge_geometry); edge_image=CropImage(image,&edge_geometry,exception); if (edge_image == (Image *) NULL) return(0.0);