summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwl <wl>2007-11-29 18:43:21 +0000
committerwl <wl>2007-11-29 18:43:21 +0000
commit14cdd53c773cb9b4c4d52a6873252ce23530d35a (patch)
tree6196c44b8c632309e25620a423cacd3bb2da4f10
parent6645dadd86aa0888a313d7e65b82916858c86929 (diff)
downloadgroff-14cdd53c773cb9b4c4d52a6873252ce23530d35a.tar.gz
* src/devices/grotty/tty.cpp (tty_printer::line): Fix line lengths.
typo.
-rw-r--r--ChangeLog4
-rw-r--r--doc/groff.texinfo2
-rw-r--r--src/devices/grotty/tty.cpp4
3 files changed, 7 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index f87fd44b..5be8e85d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2007-11-29 Werner LEMBERG <wl@gnu.org>
+
+ * src/devices/grotty/tty.cpp (tty_printer::line): Fix line lengths.
+
2007-11-20 Werner LEMBERG <wl@gnu.org>
* doc/pic.ms: Add Heinz-Jürgen's 3d boxes example.
diff --git a/doc/groff.texinfo b/doc/groff.texinfo
index a883be17..de0efb3e 100644
--- a/doc/groff.texinfo
+++ b/doc/groff.texinfo
@@ -7187,7 +7187,7 @@ page:
. sp |\\$1-\\n[.v]u
..
.
-.de y-from_bot-up
+.de y-from-bot-up
. sp |\\n[.p]u-\\$1-\\n[.v]u
..
@endExample
diff --git a/src/devices/grotty/tty.cpp b/src/devices/grotty/tty.cpp
index be06ea7d..1fab0cc7 100644
--- a/src/devices/grotty/tty.cpp
+++ b/src/devices/grotty/tty.cpp
@@ -556,7 +556,7 @@ void tty_printer::line(int hpos, int vpos, int dx, int dy,
v += len;
len = -len;
}
- if (len >= 0 && len <= font::vert)
+ if (len == 0)
add_char(vline_char, font::hor, hpos, v, col, fill,
VDRAW_MODE|START_LINE|END_LINE);
else {
@@ -582,7 +582,7 @@ void tty_printer::line(int hpos, int vpos, int dx, int dy,
h += len;
len = -len;
}
- if (len >= 0 && len <= font::hor)
+ if (len == 0)
add_char(hline_char, font::hor, h, vpos, col, fill,
HDRAW_MODE|START_LINE|END_LINE);
else {