chiark
/
gitweb
/
~yarrgweb
/
ypp-sc-tools.web-test.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
811c58e
)
Fix assertion failure on 2-page commodity listings
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Thu, 10 Sep 2009 14:41:34 +0000
(15:41 +0100)
committer
Ian Jackson
<Ian.Jackson@eu.citrix.com>
Thu, 10 Sep 2009 14:41:34 +0000
(15:41 +0100)
yarrg/structure.c
patch
|
blob
|
history
diff --git
a/yarrg/structure.c
b/yarrg/structure.c
index ba7ba0dedc5b9208fa1ec195bde7490e9f19d08a..a49fe0fd7e91782d6d1f68254ac6974e74097e87 100644
(file)
--- 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;