]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Thu, 3 Jun 2010 17:02:56 +0000 (17:02 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Thu, 3 Jun 2010 17:02:56 +0000 (17:02 +0000)
magick/attribute.c

index e2278b06d08f1e95c929248c4d600ddd16880e87..8a91b6ca25785728cee0fe513aa26b8d8bcc5309 100644 (file)
@@ -351,7 +351,7 @@ MagickExport size_t GetImageChannelDepth(const Image *image,
 
           status=0;
           scale=1;
-          if (depth < QuantumDepth)
+          if (current_depth[id] < QuantumDepth)
             scale=QuantumRange/((QuantumAny) QuantumRange >> (QuantumDepth-
               current_depth[id]));
           if ((channel & RedChannel) != 0)
@@ -408,7 +408,7 @@ MagickExport size_t GetImageChannelDepth(const Image *image,
 
         status=0;
         scale=1;
-        if (depth < QuantumDepth)
+        if (current_depth[id] < QuantumDepth)
           scale=QuantumRange/((QuantumAny) QuantumRange >> (QuantumDepth-
             current_depth[id]));
         if ((channel & RedChannel) != 0)