changeset 33531:de985bc39ea3

(pos_visible_p): Handle case that we reach ZV without knowing the line's height; use the default font's height in that case.
author Gerd Moellmann <gerd@gnu.org>
date Thu, 16 Nov 2000 05:05:12 +0000
parents 065659c84fef
children 0c77456f271c
files src/xdisp.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/xdisp.c	Thu Nov 16 04:40:42 2000 +0000
+++ b/src/xdisp.c	Thu Nov 16 05:05:12 2000 +0000
@@ -995,13 +995,15 @@
 	{
 	  if (last_height)
 	    line_height = last_height;
-	  else
+	  else if (charpos < ZV)
 	    {
 	      move_it_by_lines (&it, 1, 1);
 	      line_height = (it.max_ascent || it.max_descent
 			     ? it.max_ascent + it.max_descent
 			     : last_height);
 	    }
+	  else 
+	    line_height = FONT_HEIGHT (FRAME_FONT (XFRAME (w->frame)));
 	}
       line_bottom_y = line_top_y + line_height;