From d86b55e6bd0b0c50da353621af69269c7c2110ed Mon Sep 17 00:00:00 2001 From: Dirk Lemstra Date: Mon, 22 Apr 2019 09:26:25 +0200 Subject: [PATCH] Corrected inverse offsets inside GravityAdjustGeometry. --- MagickCore/geometry.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: -- 2.40.0