changeset 32878:dd3d90d65214

(pos_visible_p): Don't add `it.current_y' twice.
author Miles Bader <miles@gnu.org>
date Wed, 25 Oct 2000 13:13:13 +0000
parents d37727fd841b
children e179a37546cc
files src/xdisp.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/xdisp.c	Wed Oct 25 12:14:15 2000 +0000
+++ b/src/xdisp.c	Wed Oct 25 13:13:13 2000 +0000
@@ -954,9 +954,9 @@
       int line_height;
 
       if (it.max_ascent == 0 && it.max_descent == 0)
-	line_height = it.current_y + last_height;
+	line_height = last_height;
       else
-	line_height = it.current_y + it.max_ascent + it.max_descent;
+	line_height = it.max_ascent + it.max_descent;
       
       *fully = it.current_y + line_height <= it.last_visible_y;
       visible_p = 1;