From: Cristy Date: Sat, 3 Feb 2018 16:35:44 +0000 (-0500) Subject: https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=33466 X-Git-Tag: 7.0.7-23~167 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=93aab60d475dc608d04a0d65c7b53918a9c16625;p=imagemagick https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=33466 --- 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;