summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--out.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/out.c b/out.c
index a7b70635..58310d3b 100644
--- a/out.c
+++ b/out.c
@@ -149,7 +149,7 @@ tblcalc(struct rofftbl *tbl, const struct tbl_span *sp_first,
gp = &first_group;
for (dp = sp->first; dp != NULL; dp = dp->next) {
icol = dp->layout->col;
- while (icol > maxcol)
+ while (maxcol < icol + dp->hspans)
tbl->cols[++maxcol].spacing = SIZE_MAX;
col = tbl->cols + icol;
col->flags |= dp->layout->flags;