From: Gerd Moellmann Date: Wed, 27 Sep 2000 11:43:08 +0000 (+0000) Subject: (window_box_height): Add an assertion. X-Git-Tag: emacs-pretest-21.0.90~1348 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7ecd493745ca9df70249e04f303cfb5451679f10;p=emacs.git (window_box_height): Add an assertion. --- diff --git a/src/xdisp.c b/src/xdisp.c index 1c76ec8e797..dfe7c3dd95d 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -818,6 +818,8 @@ window_box_height (w) { 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);