From: cristy Date: Tue, 19 Jun 2012 16:22:15 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~5400 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8eacae4c580130769ff9ba957f494a9ebc91775f;p=imagemagick --- diff --git a/MagickCore/attribute.c b/MagickCore/attribute.c index 0f9d351b3..025f40cc5 100644 --- a/MagickCore/attribute.c +++ b/MagickCore/attribute.c @@ -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);