about summary refs log tree commit diff
path: root/editor/pnmcrop.c
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2007-11-13 16:15:47 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2007-11-13 16:15:47 +0000
commit9713bebad5ddac71fb00f5394dfd48ee3909ff2d (patch)
treeaf1d5d9dda79e50170ed61d128721c8e4c2eb8a4 /editor/pnmcrop.c
parent4b1866b007064710b64964d6c7ba62b95791a9a3 (diff)
downloadnetpbm-mirror-9713bebad5ddac71fb00f5394dfd48ee3909ff2d.tar.gz
netpbm-mirror-9713bebad5ddac71fb00f5394dfd48ee3909ff2d.tar.xz
netpbm-mirror-9713bebad5ddac71fb00f5394dfd48ee3909ff2d.zip
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
Diffstat (limited to 'editor/pnmcrop.c')
-rw-r--r--editor/pnmcrop.c7
1 files changed, 4 insertions, 3 deletions
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);
 }