]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Wed, 30 Oct 2013 23:44:18 +0000 (23:44 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Wed, 30 Oct 2013 23:44:18 +0000 (23:44 +0000)
coders/xcf.c

index 69db38df71229b2c0eabf300ef9fb879987912b3..394f52aaf54e42a279a16512522feb0b18490a8d 100644 (file)
@@ -1063,7 +1063,7 @@ static Image *ReadXCFImage(const ImageInfo *image_info,ExceptionInfo *exception)
       if (image_type == GIMP_INDEXED)
         ThrowReaderException(CoderError,"ColormapTypeNotSupported");
   (void) SetImageBackgroundColor(image,exception);
-  image->alpha_trait=BlendPixelTrait;
+  (void) SetImageAlpha(image,OpaqueAlpha,exception);
   /*
     Read properties.
   */
@@ -1334,7 +1334,7 @@ static Image *ReadXCFImage(const ImageInfo *image_info,ExceptionInfo *exception)
         /*
           Composite the layer data onto the main image, dispose the layer.
         */
-        (void) CompositeImage(image,layer_info[0].image,OverCompositeOp,
+        (void) CompositeImage(image,layer_info[0].image,CopyCompositeOp,
           MagickTrue,layer_info[0].offset_x,layer_info[0].offset_y,exception);
         layer_info[0].image =DestroyImage( layer_info[0].image);
       }