From: Dirk Lemstra Date: Mon, 22 Apr 2019 07:26:25 +0000 (+0200) Subject: Corrected inverse offsets inside GravityAdjustGeometry. X-Git-Tag: 7.0.8-42~11 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d86b55e6bd0b0c50da353621af69269c7c2110ed;p=imagemagick Corrected inverse offsets inside GravityAdjustGeometry. --- diff --git a/MagickCore/geometry.c b/MagickCore/geometry.c index d67b1b503..5d22d572b 100644 --- a/MagickCore/geometry.c +++ b/MagickCore/geometry.c @@ -541,7 +541,7 @@ MagickExport void GravityAdjustGeometry(const size_t width, case EastGravity: case SouthEastGravity: { - region->x=(ssize_t) (width-region->width-region->x); + region->x+=(ssize_t) (width-region->width); break; } case NorthGravity: @@ -564,7 +564,7 @@ MagickExport void GravityAdjustGeometry(const size_t width, case SouthGravity: case SouthEastGravity: { - region->y=(ssize_t) (height-region->height-region->y); + region->y+=(ssize_t) (height-region->height); break; } case EastGravity: