# HG changeset patch # User Gerd Moellmann # Date 970054988 0 # Node ID 85c245edb7d7f188c4f5a1fcee75ab554c0c7457 # Parent 9c779861abff191ecd7bfb0fb902810280880832 (window_box_height): Add an assertion. diff -r 9c779861abff -r 85c245edb7d7 src/xdisp.c --- a/src/xdisp.c Wed Sep 27 11:42:27 2000 +0000 +++ b/src/xdisp.c Wed Sep 27 11:43:08 2000 +0000 @@ -818,6 +818,8 @@ { struct frame *f = XFRAME (w->frame); int height = XFASTINT (w->height) * CANON_Y_UNIT (f); + + xassert (height >= 0); if (WINDOW_WANTS_MODELINE_P (w)) height -= CURRENT_MODE_LINE_HEIGHT (w);