From d0c5146baf2b7536cea0e846e8a6879d069d9c12 Mon Sep 17 00:00:00 2001 From: cristy Date: Wed, 15 Jun 2011 19:17:40 +0000 Subject: [PATCH] --- ChangeLog | 5 ++++- coders/pnm.c | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index a460bef06..8f05fbec7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ +2011-06-15 6.7.0-8 Cristy + * New version 6.7.0-8. + 2011-06-14 6.7.0-8 Anthony Thyssen - * 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. diff --git a/coders/pnm.c b/coders/pnm.c index 3182e56dd..ac74d61d8 100644 --- a/coders/pnm.c +++ b/coders/pnm.c @@ -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)) -- 2.40.0