]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <urban-warrior@imagemagick.org>
Wed, 20 Sep 2017 00:47:07 +0000 (20:47 -0400)
committerCristy <urban-warrior@imagemagick.org>
Wed, 20 Sep 2017 00:47:07 +0000 (20:47 -0400)
MagickCore/colormap.c

index 7bcca68a13ae256b64dfab2a6726256cc4fef193..5dd595de1dbede2985fc9d12103cfe57eb4490ad 100644 (file)
@@ -133,8 +133,8 @@ MagickExport MagickBooleanType AcquireImageColormap(Image *image,
     double
       pixel;
 
-    pixel=(double) (i*(QuantumRange/MagickMax(colors-1,1)));
     GetPixelInfo(image,image->colormap+i);
+    pixel=(double) (i*(QuantumRange/MagickMax(colors-1,1)));
     image->colormap[i].red=pixel;
     image->colormap[i].green=pixel;
     image->colormap[i].blue=pixel;