Return correct offset for negative index for -fx option

This commit is contained in:
Cristy
2016-12-09 10:55:15 -05:00
parent a739e8f74e
commit cb2736070e
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -5,6 +5,8 @@
https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=31006).
* Enable alpha channel if background color is non-opaque (reference
https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=31016).
* Return correct offset for negative index for -fx option (reference
https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=31019).
2016-12-05 7.0.3-9 Cristy <quetzlzacatenango@image...>
* Release ImageMagick version 7.0.3-9, GIT revision 19139:6fed3f1:20161205.
+1 -1
View File
@@ -1337,7 +1337,7 @@ static double FxGetSymbol(FxInfo *fx_info,const PixelChannel channel,
*q='\0';
alpha=FxEvaluateSubexpression(fx_info,channel,x,y,subexpression,
&depth,&beta,exception);
i=(ssize_t) (alpha+0.5);
i=(ssize_t) alpha;
p++;
}
if (*p == '.')