From 7ecd493745ca9df70249e04f303cfb5451679f10 Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Wed, 27 Sep 2000 11:43:08 +0000 Subject: [PATCH] (window_box_height): Add an assertion. --- src/xdisp.c | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.39.5