diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-06-30 12:30:36 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-06-30 12:30:36 +0000 |
commit | 1c345c57d0409711abb1ac63246e87a2cb57326f (patch) | |
tree | f7f075ebf1e7cb725e0d9b9cdd61665b708b4bf4 /term.c | |
parent | 38931802fd8955ea9a7423f1a83b5578eaa9314e (diff) | |
download | mandoc-1c345c57d0409711abb1ac63246e87a2cb57326f.tar.gz |
Pushed normalisation of scaling units into term_hspan().
Diffstat (limited to 'term.c')
-rw-r--r-- | term.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -692,6 +692,11 @@ term_vspan(const struct termp *p, const struct roffsu *su) size_t term_hspan(const struct termp *p, const struct roffsu *su) { + double v; - return((*p->hspan)(p, su)); + v = ((*p->hspan)(p, su)); + if (v < 0.0) + v = 0.0; + return((size_t) /* LINTED */ + v); } |