]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Tue, 22 Sep 2009 02:24:55 +0000 (02:24 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Tue, 22 Sep 2009 02:24:55 +0000 (02:24 +0000)
magick/composite.c
magick/decorate.c

index f22ffe2ed83a74890547a16a18d7254373bcabf3..9132b4b6dc453b2e0c11919ac909a35aa1b1089e 100644 (file)
@@ -2598,8 +2598,8 @@ MagickExport MagickBooleanType TextureImage(Image *image,const Image *texture)
       if ((x+(long) width) > (long) image->columns)
         width=image->columns-x;
       (void) CopyMagickMemory(q,p,width*sizeof(*p));
-      if ((indexes != (IndexPacket *) NULL) &&
-          (texture_indexes != (const IndexPacket *) NULL))
+      if ((image->colorspace == CMYKColorspace) &&
+          (texture->colorspace == CMYKColorspace))
         {
           (void) CopyMagickMemory(indexes,texture_indexes,width*
             sizeof(*indexes));
index 1841c09b1b702de32cdd8cba98616e5e7845f734..422b42679f1ec7ad10da42ea18f217d1d27f2f72 100644 (file)
@@ -471,8 +471,8 @@ MagickExport Image *FrameImage(const Image *image,const FrameInfo *frame_info,
           }
         indexes=GetCacheViewVirtualIndexQueue(image_view);
         (void) CopyMagickMemory(q,p,image->columns*sizeof(*p));
-        if ((indexes != (IndexPacket *) NULL) &&
-             (frame_indexes != (const IndexPacket *) NULL))
+        if ((image->colorspace == CMYKColorspace) &&
+            (frame_image->colorspace == CMYKColorspace))
           {
             (void) CopyMagickMemory(frame_indexes,indexes,image->columns*
               sizeof(*indexes));