diff options
-rw-r--r-- | editor/pnmcrop.c | 7 |
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); } |