diff options
-rw-r--r-- | tbl_layout.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tbl_layout.c b/tbl_layout.c index 8dd35484..b6f45f43 100644 --- a/tbl_layout.c +++ b/tbl_layout.c @@ -72,6 +72,23 @@ mods(struct tbl_node *tbl, struct tbl_cell *cp, char buf[5]; int i; + /* Not all types accept modifiers. */ + + switch (cp->pos) { + case (TBL_CELL_DOWN): + /* FALLTHROUGH */ + case (TBL_CELL_HORIZ): + /* FALLTHROUGH */ + case (TBL_CELL_DHORIZ): + /* FALLTHROUGH */ + case (TBL_CELL_VERT): + /* FALLTHROUGH */ + case (TBL_CELL_DVERT): + return(1); + default: + break; + } + mod: /* * XXX: since, at least for now, modifiers are non-conflicting |