Changeset 7100 for ImageMagick/trunk/MagickCore/channel.c
- Timestamp:
- 03/13/12 09:01:27 (14 months ago)
- File:
-
- 1 edited
-
ImageMagick/trunk/MagickCore/channel.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ImageMagick/trunk/MagickCore/channel.c
r7096 r7100 242 242 GetMagickToken(p,&p,token); 243 243 channel_op=ExtractChannelOp; 244 for (channels=0; * p!= '\0'; )244 for (channels=0; *token != '\0'; ) 245 245 { 246 246 ssize_t … … 268 268 *canvas; 269 269 270 if ((channel_op == ExtractChannelOp) && (channels == 1)) 271 { 272 destination_image->colorspace=GRAYColorspace; 273 InitializePixelChannelMap(destination_image); 274 } 270 275 status=SetImageStorageClass(destination_image,DirectClass,exception); 271 276 if (status == MagickFalse) … … 273 278 destination_image=DestroyImageList(destination_image); 274 279 return(destination_image); 275 }276 if ((channel_op == ExtractChannelOp) && (channels == 1))277 {278 destination_image->colorspace=GRAYColorspace;279 InitializePixelChannelMap(destination_image);280 280 } 281 281 canvas=CloneImage(source_image,0,0,MagickTrue,exception); … … 371 371 break; 372 372 } 373 if ((channel_op == ExtractChannelOp) && (channels == 1)) 374 { 375 destination_image->colorspace=GRAYColorspace; 376 InitializePixelChannelMap(destination_image); 377 } 373 378 status=SetImageStorageClass(destination_image,DirectClass,exception); 374 379 if (status == MagickFalse) … … 377 382 return((Image *) NULL); 378 383 } 379 if ((channel_op == ExtractChannelOp) && (channels == 1)) 380 { 381 destination_image->colorspace=GRAYColorspace; 382 InitializePixelChannelMap(destination_image); 383 } 384 return(destination_image); 384 return(GetFirstImageInList(destination_image)); 385 385 } 386 386
Note: See TracChangeset
for help on using the changeset viewer.
