summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 {