]> granicus.if.org Git - imagemagick/commitdiff
MagickCore/attribute.c: remove redundant check (#1313)
authorIlya Shipitsin <chipitsine@gmail.com>
Sat, 15 Sep 2018 18:50:02 +0000 (23:50 +0500)
committerImageMagick <urban-warrior@users.noreply.github.com>
Sat, 15 Sep 2018 18:50:02 +0000 (14:50 -0400)
atDepth is assigned "true" in line 324

MagickCore/attribute.c

index 989b8fd80990cf9d5c2719f2a570c05e1cb44d0d..773078a7854e571c5915dc69babaf914b268cca7 100644 (file)
@@ -323,8 +323,7 @@ MagickExport size_t GetImageDepth(const Image *image,ExceptionInfo *exception)
 
           atDepth=MagickTrue;
           range=GetQuantumRange(current_depth[id]);
-          if ((atDepth != MagickFalse) &&
-              (GetPixelRedTraits(image) & UpdatePixelTrait) != 0)
+          if ((GetPixelRedTraits(image) & UpdatePixelTrait) != 0)
             if (IsPixelAtDepth(ClampToQuantum(image->colormap[i].red),range) == MagickFalse)
               atDepth=MagickFalse;
           if ((atDepth != MagickFalse) &&