From 2f218c038d30c098134401b5fdd1cb38cd7d7f87 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Thu, 10 Sep 2009 15:41:34 +0100 Subject: [PATCH] Fix assertion failure on 2-page commodity listings --- yarrg/structure.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yarrg/structure.c b/yarrg/structure.c index ba7ba0d..a49fe0f 100644 --- a/yarrg/structure.c +++ b/yarrg/structure.c @@ -1052,7 +1052,7 @@ void check_pager_motion(int first, int stop) { if (count <= 1) return; /* only one page */ double firstheight= PH(first); - double max= count>2 ? firstheight / (count-2) : 0; + double max= count>2 ? firstheight / (count-2) : 1e6; double min= firstheight / (count-1); max *= 1.1; min /= 1.1; -- 2.30.2