comparison src/xdisp.c @ 42137:2eeaeb542d76

(window_box_height): Do not return negative values. From Gerd Moellmann <gerd@gnu.org>.
author Pavel Janík <Pavel@Janik.cz>
date Tue, 18 Dec 2001 16:14:13 +0000
parents c2bd9c005c06
children 0f4506820432
comparison
equal deleted inserted replaced
42136:5b63c25571a8 42137:2eeaeb542d76
908 height -= hl_row->height; 908 height -= hl_row->height;
909 else 909 else
910 height -= estimate_mode_line_height (f, HEADER_LINE_FACE_ID); 910 height -= estimate_mode_line_height (f, HEADER_LINE_FACE_ID);
911 } 911 }
912 912
913 return height; 913 /* With a very small font and a mode-line that's taller than
914 default, we might end up with a negative height. */
915 return max (0, height);
914 } 916 }
915 917
916 918
917 /* Return the frame-relative coordinate of the left edge of display 919 /* Return the frame-relative coordinate of the left edge of display
918 area AREA of window W. AREA < 0 means return the left edge of the 920 area AREA of window W. AREA < 0 means return the left edge of the