summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--render/table.c6
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 */