This bug, introduced in commit
f1db96caae4 (ender: Fold caption drawing
into rendering engine.), could cause the title and body of a table to be
drawn overlapping.
for (i = 0; i < p->n_pages; i++)
{
const struct render_page *page = p->pages[i];
+ int size = render_page_get_size (page, V);
clip[V][0] = MAX (y, ofs[V]) - ofs[V];
- clip[V][1] = MIN (y + h, ofs[V] + render_page_get_size (page, V)) - ofs[V];
+ clip[V][1] = MIN (y + h, ofs[V] + size) - ofs[V];
if (clip[V][1] > clip[V][0])
render_page_draw_region (page, ofs, clip);
+
+ ofs[V] += size;
}
}