]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Fri, 27 Feb 2015 11:03:43 +0000 (11:03 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Fri, 27 Feb 2015 11:03:43 +0000 (11:03 +0000)
MagickCore/enhance.c

index 03426927ac5c9b135ab72934dd3fe5b267bdad6f..c02232b71befc48f00b2123e43da27f3c33bd132 100644 (file)
@@ -2870,7 +2870,8 @@ MagickExport MagickBooleanType LinearStretchImage(Image *image,
       break;
   }
   histogram=(double *) RelinquishMagickMemory(histogram);
-  status=LevelImage(image,(double) black,(double) white,1.0,exception);
+  status=LevelImage(image,(double) ScaleMapToQuantum(black),(double)
+    ScaleMapToQuantum(white),1.0,exception);
   return(status);
 }
 \f