From a494388aa6c22bbecf620418c78f9e6d90d353d4 Mon Sep 17 00:00:00 2001 From: cristy Date: Wed, 11 Feb 2015 11:25:46 +0000 Subject: [PATCH] --- MagickWand/operation.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/MagickWand/operation.c b/MagickWand/operation.c index 757e5ec76..e5f70cb83 100644 --- a/MagickWand/operation.c +++ b/MagickWand/operation.c @@ -2443,8 +2443,7 @@ static MagickBooleanType CLISimpleOperatorImage(MagickCLI *cli_wand, if (IfNormalOp) constant=PerceptibleReciprocal(constant); (void) EvaluateImage(_image,PowEvaluateOperator,constant,_exception); - if (_image->gamma != 0.0) - _image->gamma*=constant; + _image->gamma*=StringToDouble(arg1,(char **) NULL); #endif /* Set gamma setting -- Old meaning of "+gamma" * _image->gamma=StringToDouble(arg1,(char **) NULL); -- 2.40.0