Changeset 7527
- Timestamp:
- 04/16/12 11:28:23 (13 months ago)
- File:
-
- 1 edited
-
ImageMagick/trunk/MagickCore/channel.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ImageMagick/trunk/MagickCore/channel.c
r7219 r7527 42 42 */ 43 43 #include "MagickCore/studio.h" 44 #include "MagickCore/colorspace-private.h" 44 45 #include "MagickCore/image.h" 45 46 #include "MagickCore/list.h" … … 483 484 return((Image *) NULL); 484 485 } 486 if (IsGrayColorspace(image->colorspace) != MagickFalse) 487 (void) SetImageColorspace(combine_image,sRGBColorspace,exception); 485 488 if ((GetPixelAlphaTraits(image) & UpdatePixelTrait) != 0) 486 489 combine_image->matte=MagickTrue; … … 521 524 } 522 525 next=image; 523 for (i=0; i < (ssize_t) GetPixelChannels( image); i++)526 for (i=0; i < (ssize_t) GetPixelChannels(combine_image); i++) 524 527 { 525 528 PixelChannel … … 527 530 528 531 PixelTrait 529 combine_traits,530 532 traits; 531 533 … … 535 537 if (next == (Image *) NULL) 536 538 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) 542 542 continue; 543 543 image_view=AcquireCacheView(next);
Note: See TracChangeset
for help on using the changeset viewer.
