mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-09 12:32:21 +03:00
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:
parent
4fad67114e
commit
0d32293c6a
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user