]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Tue, 19 Jun 2012 16:22:15 +0000 (16:22 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Tue, 19 Jun 2012 16:22:15 +0000 (16:22 +0000)
MagickCore/attribute.c

index 0f9d351b3abccbe9c7c9035af4c3036fa6eb47e5..025f40cc59b8fcce5045d1fcd4ad294f57d82295 100644 (file)
@@ -925,7 +925,7 @@ MagickExport MagickBooleanType SetImageDepth(Image *image,
   assert(image->signature == MagickSignature);
   if (depth >= MAGICKCORE_QUANTUM_DEPTH)
     {
-      image->depth=MAGICKCORE_QUANTUM_DEPTH;
+      image->depth=depth;
       return(MagickTrue);
     }
   range=GetQuantumRange(depth);