summaryrefslogtreecommitdiff
path: root/out.c
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2019-07-26 09:51:35 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2019-07-26 09:51:35 +0000
commita5efdeedef481aea3632844ca94a80567a75b5ad (patch)
tree6a7c9e206b8798d24754639cf546c86117f9ede0 /out.c
parent8f0c701250919da7f99273250017bf536dc73db9 (diff)
Notes
Diffstat (limited to 'out.c')
-rw-r--r--out.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/out.c b/out.c
index 363d04cf979d8..d0b0d0a2ace3c 100644
--- a/out.c
+++ b/out.c
@@ -1,4 +1,4 @@
-/* $Id: out.c,v 1.77 2018/12/13 11:55:47 schwarze Exp $ */
+/* $Id: out.c,v 1.78 2019/03/29 21:27:06 schwarze Exp $ */
/*
* Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2011,2014,2015,2017,2018 Ingo Schwarze <schwarze@openbsd.org>
@@ -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;