Fix table cell bottom borders leaking to the cell on the right.

Prevent leaking of table cell borders that happend when doing
  border-collapse: collapse;

  Error was do to cell->columns being treated as number of extra
  columns spanned minus 1, rather than number of columns spanned.
This commit is contained in:
Michael Drake 2014-04-14 13:24:42 +01:00
parent 4fad67114e
commit 0d32293c6a

View File

@ -954,12 +954,12 @@ bool table_cell_top_process_row(struct box *cell, struct box *row,
while (processed == false) {
for (c = row->children; c != NULL; c = c->next) {
/* Ignore cells to the left */
if (c->start_column + c->columns <
if (c->start_column + c->columns - 1 <
cell->start_column)
continue;
/* Ignore cells to the right */
if (c->start_column >= cell->start_column +
cell->columns)
if (c->start_column > cell->start_column +
cell->columns - 1)
continue;
/* Flag that we've processed a cell */