From ff08adddbcc70a914c10ea139159edc82390f57c Mon Sep 17 00:00:00 2001 From: cristy Date: Mon, 2 Apr 2012 00:33:26 +0000 Subject: [PATCH] --- coders/xcf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coders/xcf.c b/coders/xcf.c index b17665610..0221c923b 100644 --- a/coders/xcf.c +++ b/coders/xcf.c @@ -388,7 +388,7 @@ static MagickBooleanType load_tile(Image *image,Image *tile_image, SetPixelRed(tile_image,ScaleCharToQuantum(xcfdata->red),q); SetPixelGreen(tile_image,ScaleCharToQuantum(xcfdata->green),q); SetPixelBlue(tile_image,ScaleCharToQuantum(xcfdata->blue),q); - SetPixelAlpha(tile_image,xcfdata->alpha == 0U ? TransparentAlpha : + SetPixelAlpha(tile_image,xcfdata->alpha == 255U ? TransparentAlpha : ScaleCharToQuantum((unsigned char) inLayerInfo->alpha),q); xcfdata++; q+=GetPixelChannels(tile_image); -- 2.50.1