]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sat, 6 Nov 2010 16:10:59 +0000 (16:10 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sat, 6 Nov 2010 16:10:59 +0000 (16:10 +0000)
magick/cache.c

index 181e5e900ffc3ae6f676609a59866ebb74d18d3f..29c8cf5dc1a62b6ed9617b461841495b5b1ad1b9 100644 (file)
@@ -1288,6 +1288,8 @@ static MagickBooleanType CloneMemoryToMemoryPixelCache(CacheInfo *clone_info,
 static MagickBooleanType ClonePixelCachePixels(CacheInfo *clone_info,
   CacheInfo *cache_info,ExceptionInfo *exception)
 {
+  if (cache_info->type == PingCache)
+    return(MagickTrue);
   if ((clone_info->type != DiskCache) && (cache_info->type != DiskCache))
     return(CloneMemoryToMemoryPixelCache(clone_info,cache_info,exception));
   if ((clone_info->type == DiskCache) && (cache_info->type == DiskCache))
@@ -2121,7 +2123,7 @@ static Cache GetImagePixelCache(Image *image,const MagickBooleanType clone,
           status=OpenPixelCache(&clone_image,IOMode,exception);
           if (status != MagickFalse)
             {
-              if ((clone != MagickFalse) && (cache_info->type != PingCache))
+              if (clone != MagickFalse)
                 status=ClonePixelCachePixels(clone_info,cache_info,exception);
               if (status != MagickFalse)
                 {