Mercurial > emacs
changeset 31931:85c245edb7d7
(window_box_height): Add an assertion.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Wed, 27 Sep 2000 11:43:08 +0000 |
parents | 9c779861abff |
children | 081edde76197 |
files | src/xdisp.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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);