render: Don't add overflows when header is contiguous with body.
authorBen Pfaff <blp@cs.stanford.edu>
Sun, 13 Jul 2014 17:47:43 +0000 (10:47 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Sun, 13 Jul 2014 17:47:43 +0000 (10:47 -0700)
commit35fab6526c3b8491a05769cb72e24c00316c5d3f
treea0ab3a2ae046befa3aa914311c3bc68b354cd79d
parent1d0b435ea6ca932d3e1c446db402ec41b9024ccd
render: Don't add overflows when header is contiguous with body.

render_page_select() needs to calculate overflows when it cuts a header off
from the body of a table.  Until now, it has considered headers and body to
always be cut off from each other, but this isn't true when the selected
body region is adjacent to one of the headers.  This commit takes that into
consideration, producing better results in one of the tests in the
testsuite.

This commit is much smaller when viewed with whitespace changes ignored.
src/output/render.c
tests/output/render.at