diff options
author | wlemb <wlemb> | 2003-12-18 22:40:03 +0000 |
---|---|---|
committer | wlemb <wlemb> | 2003-12-18 22:40:03 +0000 |
commit | 6836752c1c182a33ed4b81ce499edd3171899b1b (patch) | |
tree | c35742777431636661f038d1e640a84e16d230bd /src | |
parent | 2da12cfd4b7239ba5c20574842f43ab9344ba579 (diff) | |
download | groff-6836752c1c182a33ed4b81ce499edd3171899b1b.tar.gz |
* src/devices/grops/ps.cc (ps_output::put_float): Fix line length
computation.
Diffstat (limited to 'src')
-rw-r--r-- | src/devices/grops/ps.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/devices/grops/ps.cpp b/src/devices/grops/ps.cpp index 60be928e..2ab1e077 100644 --- a/src/devices/grops/ps.cpp +++ b/src/devices/grops/ps.cpp @@ -336,8 +336,7 @@ ps_output &ps_output::put_float(double d) if (buf[last] == '.') last--; buf[++last] = '\0'; - int len = last + 1; - if (col > 0 && col + len + need_space > max_line_length) { + if (col > 0 && col + last + need_space > max_line_length) { putc('\n', fp); col = 0; need_space = 0; @@ -347,7 +346,7 @@ ps_output &ps_output::put_float(double d) col++; } fputs(buf, fp); - col += len; + col += last; need_space = 1; return *this; } |