]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Tue, 6 Dec 2011 18:22:48 +0000 (18:22 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Tue, 6 Dec 2011 18:22:48 +0000 (18:22 +0000)
MagickCore/fx.c

index 9287438d5479450603faf34b008d8e0272c0730d..bb4ba73bd954d27b77009010e5838b2bb069709a 100644 (file)
@@ -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);