aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/scaling-report.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/scaling-report.c b/src/scaling-report.c
index 197f72f9..2cfafd09 100644
--- a/src/scaling-report.c
+++ b/src/scaling-report.c
@@ -389,6 +389,10 @@ static void scale_factor_histogram(cairo_t *cr, const struct image *images,
if ( osf > osf_max ) osf_max = osf;
}
osf_max = ceil(osf_max);
+ if ( osf_max > 1000.0 ) {
+ ERROR("Silly scale factor detected. Using 100.0 instead.\n");
+ osf_max = 100.0;
+ }
do {