Changeset 1267


Ignore:
Timestamp:
02/19/10 12:49:50 (3 years ago)
Author:
cristy
Message:
 
Location:
ImageMagick/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ImageMagick/trunk/coders/tiff.c

    r994 r1267  
    10661066      } 
    10671067    else 
    1068       { 
    1069         if (samples_per_pixel > 3) 
     1068      for (i=0; i < extra_samples; i++) 
     1069      { 
     1070        if (sample_info[i] == EXTRASAMPLE_UNASSALPHA) 
    10701071          { 
    10711072            image->matte=MagickTrue; 
    10721073            associated_alpha=MagickFalse; 
    10731074          } 
    1074         if (sample_info[0] == EXTRASAMPLE_UNASSALPHA) 
    1075           { 
    1076             image->matte=MagickTrue; 
    1077             associated_alpha=MagickFalse; 
    1078           } 
    1079         if (sample_info[0] == EXTRASAMPLE_ASSOCALPHA) 
     1075        if (sample_info[i] == EXTRASAMPLE_ASSOCALPHA) 
    10801076          { 
    10811077            image->matte=MagickTrue; 
  • ImageMagick/trunk/magick/transform.c

    r1213 r1267  
    625625        continue; 
    626626      } 
     627    indexes=GetCacheViewVirtualIndexQueue(image_view); 
     628    crop_indexes=GetCacheViewAuthenticIndexQueue(crop_view); 
    627629    (void) CopyMagickMemory(q,p,(size_t) crop_image->columns*sizeof(*q)); 
    628     indexes=GetCacheViewVirtualIndexQueue(image_view); 
    629     if (indexes != (IndexPacket *) NULL) 
    630       { 
    631         crop_indexes=GetCacheViewAuthenticIndexQueue(crop_view); 
    632         if (crop_indexes != (IndexPacket *) NULL) 
    633           (void) CopyMagickMemory(crop_indexes,indexes,(size_t) 
    634             crop_image->columns*sizeof(*crop_indexes)); 
    635       } 
     630    if ((indexes != (IndexPacket *) NULL) && 
     631        (crop_indexes != (IndexPacket *) NULL)) 
     632      (void) CopyMagickMemory(crop_indexes,indexes,(size_t) crop_image->columns* 
     633        sizeof(*crop_indexes)); 
    636634    if (SyncCacheViewAuthenticPixels(crop_view,exception) == MagickFalse) 
    637635      status=MagickFalse; 
Note: See TracChangeset for help on using the changeset viewer.