From 3a421d847f85ad5f6a68ab1016f2bab534d41cf4 Mon Sep 17 00:00:00 2001 From: Dirk Lemstra Date: Sun, 21 Apr 2019 14:52:52 +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