X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?a=blobdiff_plain;f=yarrg%2Fstructure.c;h=a49fe0fd7e91782d6d1f68254ac6974e74097e87;hb=703efc8c2d4862002c9f087bf66101fda56bfe67;hp=ba7ba0dedc5b9208fa1ec195bde7490e9f19d08a;hpb=1d567ca8d7f78addc4ec47445a80e03f0d7e6afe;p=ypp-sc-tools.main.git 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;