]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Wed, 15 Jun 2011 19:17:40 +0000 (19:17 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Wed, 15 Jun 2011 19:17:40 +0000 (19:17 +0000)
ChangeLog
coders/pnm.c

index a460bef0618b42e70a47c25cfca9682776e7fc32..8f05fbec791a822547a25d64ef0f6568a46b833e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
+2011-06-15  6.7.0-8 Cristy  <quetzlzacatenango@image...>
+  * New version 6.7.0-8.
+
 2011-06-14  6.7.0-8 Anthony Thyssen <A.Thyssen@griffith...>
-  * Added Initial implementation of  Cylinder to/from Plane 3D Distorts
+  * Added Initial implementation of Cylinder to/from Plane 3D Distorts
     Includes deritive (scaled lookup), and anti-alised horizon (validity)
     Currently can NOT handle extractions from full 360 cylinder panoramas.
 
index 3182e56ddbae0079399ce4c46043a9712149aa30..ac74d61d8cbb3a06cb52593bbb1755f7cb3afa43 100644 (file)
@@ -404,7 +404,7 @@ static Image *ReadPNMImage(const ImageInfo *image_info,ExceptionInfo *exception)
       ThrowReaderException(CorruptImageError,"NegativeOrZeroImageSize");
     if (max_value >= 65536)
       ThrowReaderException(CorruptImageError,"ImproperImageHeader");
-    for (depth=1; GetQuantumRange(depth) < max_value; depth++) ;
+    for (depth=1; GetQuantumRange(depth) <= max_value; depth++) ;
     image->depth=depth;
     if ((image_info->ping != MagickFalse) && (image_info->number_scenes != 0))
       if (image->scene >= (image_info->scene+image_info->number_scenes-1))