From: Ian Jackson Date: Thu, 10 Sep 2009 14:41:34 +0000 (+0100) Subject: Fix assertion failure on 2-page commodity listings X-Git-Tag: 3.5^2~7 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?p=ypp-sc-tools.db-test.git;a=commitdiff_plain;h=2f218c038d30c098134401b5fdd1cb38cd7d7f87 Fix assertion failure on 2-page commodity listings --- 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;