From 93aab60d475dc608d04a0d65c7b53918a9c16625 Mon Sep 17 00:00:00 2001 From: Cristy Date: Sat, 3 Feb 2018 11:35:44 -0500 Subject: [PATCH] https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=33466 --- MagickWand/operation.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MagickWand/operation.c b/MagickWand/operation.c index 76748d703..4f7e045d8 100644 --- a/MagickWand/operation.c +++ b/MagickWand/operation.c @@ -3115,14 +3115,14 @@ static MagickBooleanType CLISimpleOperatorImage(MagickCLI *cli_wand, } if (LocaleCompare("region",option+1) == 0) { - if (IsGeometry(arg1) == MagickFalse) - CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1); if (*option == '+') { (void) SetImageRegionMask(_image,WritePixelMask, (const RectangleInfo *) NULL,_exception); break; } + if (IsGeometry(arg1) == MagickFalse) + CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1); (void) ParseGravityGeometry(_image,arg1,&geometry,_exception); (void) SetImageRegionMask(_image,WritePixelMask,&geometry,_exception); break; -- 2.40.0