]> granicus.if.org Git - imagemagick/blobdiff - coders/tga.c
Check for sampling-factor option only if sampling-factor image property is NULL.
[imagemagick] / coders / tga.c
index b2e7e465e04ceef2fb8a3b4e17f343950ccb37c3..8f16b907224d3386909b32a27f9ad85df783e794 100644 (file)
@@ -228,7 +228,7 @@ static Image *ReadTGAImage(const ImageInfo *image_info,ExceptionInfo *exception)
   image->rows=tga_info.height;
   alpha_bits=(tga_info.attributes & 0x0FU);
   image->alpha_trait=(alpha_bits > 0) || (tga_info.bits_per_pixel == 32) ?
-    MagickTrue : MagickFalse;
+    BlendPixelTrait : UndefinedPixelTrait;
   if ((tga_info.image_type != TGAColormap) &&
       (tga_info.image_type != TGARLEColormap))
     image->depth=(size_t) ((tga_info.bits_per_pixel <= 8) ? 8 :