about summary refs log tree commit diff
path: root/editor/pnmcrop.c
diff options
context:
space:
mode:
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);
 }