From 9d3e993cb53679bbd3f636a61d765b0be43d30b9 Mon Sep 17 00:00:00 2001 From: giraffedata Date: Tue, 13 Nov 2007 16:22:37 +0000 Subject: Release 10.35.33 git-svn-id: http://svn.code.sf.net/p/netpbm/code/stable@465 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- Makefile.version | 2 +- doc/HISTORY | 5 +++++ editor/pnmcrop.c | 7 ++++--- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/Makefile.version b/Makefile.version index d8dd9a14..f00a8739 100644 --- a/Makefile.version +++ b/Makefile.version @@ -1,3 +1,3 @@ NETPBM_MAJOR_RELEASE = 10 NETPBM_MINOR_RELEASE = 35 -NETPBM_POINT_RELEASE = 32 +NETPBM_POINT_RELEASE = 33 diff --git a/doc/HISTORY b/doc/HISTORY index 6960d6c4..d9c04bd9 100644 --- a/doc/HISTORY +++ b/doc/HISTORY @@ -4,6 +4,11 @@ Netpbm. CHANGE HISTORY -------------- +07.11.13 BJH Release 10.35.33 + + pnmcrop: fix -verbose message about background color with + -white. + 07.10.12 BJH Release 10.35.32 bmptopnm: fix crash with 16 bit images. diff --git a/editor/pnmcrop.c b/editor/pnmcrop.c index 5fafbaac..9ce388ab 100644 --- a/editor/pnmcrop.c +++ b/editor/pnmcrop.c @@ -219,10 +219,11 @@ computeBackground(FILE * const ifP, break; } - if (verbose) + if (verbose) { + pixel const backgroundPixel = pnm_xeltopixel(background, format); pm_message("Background color is %s", - ppm_colorname(&background, maxval, TRUE /*hexok*/)); - + ppm_colorname(&backgroundPixel, maxval, TRUE /*hexok*/)); + } return(background); } -- cgit 1.4.1