Changeset 393

Show
Ignore:
Timestamp:
10/16/09 09:49:56 (5 months ago)
Author:
cristy
Message:
 
Files:
1 modified

Legend:

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

    r353 r393  
    692692      (psd_info.mode == DuotoneMode)) 
    693693    { 
    694       if (AcquireImageColormap(image,256) == MagickFalse) 
    695         ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed"); 
    696694      image->matte=psd_info.channels >= 2 ? MagickTrue : MagickFalse; 
    697695      if (image->debug != MagickFalse) 
     
    13391337              { 
    13401338                q->red=(Quantum) pixel; 
     1339                if (psd_info.channels == 1) 
     1340                  { 
     1341                    q->green=q->red; 
     1342                    q->blue=q->red; 
     1343                  } 
    13411344                if (image->storage_class == PseudoClass) 
    13421345                  {