about summary refs log tree commit diff
path: root/analyzer/pnmhistmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'analyzer/pnmhistmap.c')
-rw-r--r--analyzer/pnmhistmap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/analyzer/pnmhistmap.c b/analyzer/pnmhistmap.c
index f41b0d51..fc1bbbde 100644
--- a/analyzer/pnmhistmap.c
+++ b/analyzer/pnmhistmap.c
@@ -426,7 +426,7 @@ ppmHist(FILE *       const ifP,
     clipHistogramAll(hist, histWidth, hmax);
 
     vscale = (double) histHeight / hmax;
-    if (verbose)
+    if (verbose && pm_have_float_format())
         pm_message("Done: height = %u, vertical scale factor = %g", 
                    hmax, vscale);
 
@@ -477,7 +477,7 @@ reportScale(unsigned int const histWidth,
 
     double const hscale = (float)(histWidth-1) / (range-1);
 
-    if (hscale - 1.0 < epsilon && verbose)
+    if (hscale - 1.0 < epsilon && verbose && pm_have_float_format())
         pm_message("Horizontal scale factor: %g", hscale);
 }