Changeset 7527


Ignore:
Timestamp:
04/16/12 11:28:23 (13 months ago)
Author:
cristy
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • ImageMagick/trunk/MagickCore/channel.c

    r7219 r7527  
    4242*/ 
    4343#include "MagickCore/studio.h" 
     44#include "MagickCore/colorspace-private.h" 
    4445#include "MagickCore/image.h" 
    4546#include "MagickCore/list.h" 
     
    483484      return((Image *) NULL); 
    484485    } 
     486  if (IsGrayColorspace(image->colorspace) != MagickFalse) 
     487    (void) SetImageColorspace(combine_image,sRGBColorspace,exception); 
    485488  if ((GetPixelAlphaTraits(image) & UpdatePixelTrait) != 0) 
    486489    combine_image->matte=MagickTrue; 
     
    521524      } 
    522525    next=image; 
    523     for (i=0; i < (ssize_t) GetPixelChannels(image); i++) 
     526    for (i=0; i < (ssize_t) GetPixelChannels(combine_image); i++) 
    524527    { 
    525528      PixelChannel 
     
    527530 
    528531      PixelTrait 
    529         combine_traits, 
    530532        traits; 
    531533 
     
    535537      if (next == (Image *) NULL) 
    536538        continue; 
    537       channel=GetPixelChannelMapChannel(image,i); 
    538       traits=GetPixelChannelMapTraits(image,channel); 
    539       combine_traits=GetPixelChannelMapTraits(combine_image,channel); 
    540       if ((traits == UndefinedPixelTrait) || 
    541           (combine_traits == UndefinedPixelTrait)) 
     539      channel=GetPixelChannelMapChannel(combine_image,i); 
     540      traits=GetPixelChannelMapTraits(combine_image,channel); 
     541      if (traits == UndefinedPixelTrait) 
    542542        continue; 
    543543      image_view=AcquireCacheView(next); 
Note: See TracChangeset for help on using the changeset viewer.