]> git.eshelyaron.com Git - emacs.git/commitdiff
(window_box_height): Add an assertion.
authorGerd Moellmann <gerd@gnu.org>
Wed, 27 Sep 2000 11:43:08 +0000 (11:43 +0000)
committerGerd Moellmann <gerd@gnu.org>
Wed, 27 Sep 2000 11:43:08 +0000 (11:43 +0000)
src/xdisp.c

index 1c76ec8e797c325a0bf614e5e0f22e36881c4e6d..dfe7c3dd95dbd0c02f44d363ceab15110840d98d 100644 (file)
@@ -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);