Commit 7ecd4937 authored by Gerd Moellmann's avatar Gerd Moellmann
Browse files

(window_box_height): Add an assertion.

parent 52de7ce9
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment