From: cristy Date: Tue, 6 Dec 2011 18:22:48 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~6580 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a382acabb70e3b63ddef58c6d541b318a0b85793;p=imagemagick --- diff --git a/MagickCore/fx.c b/MagickCore/fx.c index 9287438d5..bb4ba73bd 100644 --- a/MagickCore/fx.c +++ b/MagickCore/fx.c @@ -1507,6 +1507,8 @@ static MagickRealType FxGetSymbol(FxInfo *fx_info,const PixelChannel channel, alpha=(MagickRealType) (QuantumScale*pixel.alpha); return(alpha); } + case IndexPixelChannel: + return(0.0); case IntensityPixelChannel: { return(QuantumScale*GetPixelInfoIntensity(&pixel)); @@ -3118,8 +3120,8 @@ MagickExport Image *FxImage(const Image *image,const char *expression, continue; } alpha=0.0; - (void) FxEvaluateChannelExpression(fx_info[id],(PixelChannel) i,x,y, - &alpha,exception); + (void) FxEvaluateChannelExpression(fx_info[id],channel,x,y,&alpha, + exception); q[i]=ClampToQuantum((MagickRealType) QuantumRange*alpha); } p+=GetPixelChannels(image);