]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Mon, 28 Jan 2013 00:20:34 +0000 (00:20 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Mon, 28 Jan 2013 00:20:34 +0000 (00:20 +0000)
MagickCore/cache.c

index d961d73ddccbf5722bc7d1a433c3cf0f8b4337db..6fc87875e0c37d8b824f88a5d5255a9673e573aa 100644 (file)
@@ -530,7 +530,7 @@ static MagickBooleanType ClonePixelCacheRepository(CacheInfo *clone_info,
     return(MagickTrue);
   length=cache_info->number_channels*sizeof(*cache_info->channel_map);
   if (((cache_info->type == MemoryCache) || (cache_info->type == MapCache)) &&
-      ((clone_info->type == MemoryCache) || (clone_info->type == MapCache)) &&
+      ((cache_info->type == clone_info->type) &&
        (cache_info->columns == clone_info->columns) &&
        (cache_info->rows == clone_info->rows) &&
        (cache_info->number_channels == clone_info->number_channels) &&