From 9713bebad5ddac71fb00f5394dfd48ee3909ff2d Mon Sep 17 00:00:00 2001 From: giraffedata Date: Tue, 13 Nov 2007 16:15:47 +0000 Subject: Fix -verbose message about background color with -white git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@463 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- editor/pnmcrop.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'editor/pnmcrop.c') diff --git a/editor/pnmcrop.c b/editor/pnmcrop.c index 848fe485..114e3a3d 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