aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Moellmann2000-09-27 11:43:08 +0000
committerGerd Moellmann2000-09-27 11:43:08 +0000
commit7ecd493745ca9df70249e04f303cfb5451679f10 (patch)
treef1b7b73448bf53ae50f5a34f41f189f52005ee26
parent52de7ce95d4b9bde0f0ee7e235ed97b6d9b470f3 (diff)
downloademacs-7ecd493745ca9df70249e04f303cfb5451679f10.tar.gz
emacs-7ecd493745ca9df70249e04f303cfb5451679f10.zip
(window_box_height): Add an assertion.
-rw-r--r--src/xdisp.c2
1 files changed, 2 insertions, 0 deletions
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)
818{ 818{
819 struct frame *f = XFRAME (w->frame); 819 struct frame *f = XFRAME (w->frame);
820 int height = XFASTINT (w->height) * CANON_Y_UNIT (f); 820 int height = XFASTINT (w->height) * CANON_Y_UNIT (f);
821
822 xassert (height >= 0);
821 823
822 if (WINDOW_WANTS_MODELINE_P (w)) 824 if (WINDOW_WANTS_MODELINE_P (w))
823 height -= CURRENT_MODE_LINE_HEIGHT (w); 825 height -= CURRENT_MODE_LINE_HEIGHT (w);