From 0d32293c6a0724f906e7ffe5517ccf69b8d04ccf Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Mon, 14 Apr 2014 13:24:42 +0100 Subject: 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. --- render/table.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/render/table.c b/render/table.c index 77ef4373b..22b5afd37 100644 --- a/render/table.c +++ b/render/table.c @@ -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 */ -- cgit v1.2.3