]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sun, 19 Oct 2014 16:26:39 +0000 (16:26 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sun, 19 Oct 2014 16:26:39 +0000 (16:26 +0000)
MagickCore/cache.c

index 7db035040e2fe1876350a519ddbd55c2b26999f8..17baa49556304d357eefca290f9a068c4f41951b 100644 (file)
@@ -1524,7 +1524,7 @@ static Cache GetImagePixelCache(Image *image,const MagickBooleanType clone,
             {
               if (clone != MagickFalse)
                 status=ClonePixelCacheRepository(clone_info,cache_info,
-                   exception);
+                  exception);
               if (status != MagickFalse)
                 {
                   if (cache_info->reference_count == 1)
@@ -4848,13 +4848,16 @@ MagickPrivate MagickBooleanType SyncAuthenticPixelCacheNexus(Image *image,
   if (cache_info->type == UndefinedCache)
     return(MagickFalse);
   if (nexus_info->authentic_pixel_cache != MagickFalse)
-    return(MagickTrue);
+    {
+      image->taint=MagickTrue;
+      return(MagickTrue);
+    }
   assert(cache_info->signature == MagickSignature);
   status=WritePixelCachePixels(cache_info,nexus_info,exception);
   if ((cache_info->metacontent_extent != 0) &&
       (WritePixelCacheMetacontent(cache_info,nexus_info,exception) == MagickFalse))
     return(MagickFalse);
-  if (status == MagickFalse)
+  if (status != MagickFalse)
     image->taint=MagickTrue;
   return(status);
 }