diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2014-04-14 13:24:42 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2014-04-14 13:24:42 +0100 |
commit | 0d32293c6a0724f906e7ffe5517ccf69b8d04ccf (patch) | |
tree | 80d02f67b7be3b5abf0cd9948ab8eb6978483cdb | |
parent | 4fad67114e9ae5a0e05962cdce8e8a1bb217925a (diff) | |
download | netsurf-0d32293c6a0724f906e7ffe5517ccf69b8d04ccf.tar.gz netsurf-0d32293c6a0724f906e7ffe5517ccf69b8d04ccf.tar.bz2 |
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.
-rw-r--r-- | render/table.c | 6 |
1 files 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 */ |