]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Mon, 19 Dec 2011 01:16:22 +0000 (01:16 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Mon, 19 Dec 2011 01:16:22 +0000 (01:16 +0000)
MagickCore/enhance.c

index 1fc09ce503cd38b7d9c97e223e330af7a214177e..e3de1d9cef32a55632dae577e1ab1eb0c5c302cb 100644 (file)
@@ -2133,7 +2133,7 @@ static inline MagickRealType LevelPixel(const double black_point,
   if (pixel < black_point)
     return(0.0);
   if (pixel > white_point)
-    return(white_point);
+    return((MagickRealType) QuantumRange);
   scale=(white_point != black_point) ? 1.0/(white_point-black_point) : 1.0;
   level_pixel=(MagickRealType) QuantumRange*pow(scale*((double) pixel-
     black_point),1.0/gamma);