]> granicus.if.org Git - imagemagick/commitdiff
Return correct offset for negative index for -fx option
authorCristy <urban-warrior@imagemagick.org>
Fri, 9 Dec 2016 15:55:15 +0000 (10:55 -0500)
committerCristy <urban-warrior@imagemagick.org>
Fri, 9 Dec 2016 15:55:15 +0000 (10:55 -0500)
ChangeLog
MagickCore/fx.c

index f75b906620eada3f7d056d3bda6bf5631f3486e7..b9bfba2e25d247e16acb06756d3a343105279162 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
index 02404bbf637b2205865f97e5a65150fe91a58bc2..8188cca86781ef6f1a0a1a7171f85c9fc6cff477 100644 (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 == '.')