Commit 9aabf64c authored by Jan Djärv's avatar Jan Djärv
Browse files

* nsterm.m (setFrame, initFrame): Make sure pixel_height doesn't become

zero.

Fixes: debbugs:7348
parent 8a6f24e5
2011-02-08 Jan Djärv <jan.h.d@swipnet.se>
* nsterm.m (setFrame, initFrame): Make sure pixel_height doesn't become
zero (Bug#7348).
2011-02-03 Glenn Morris <rgm@gnu.org>
* xfaces.c (Finternal_set_lisp_face_attribute):
......
......@@ -5721,6 +5721,7 @@ + (CGFloat) scrollerWidth
win = nwin;
condemned = NO;
pixel_height = NSHeight (r);
if (pixel_height == 0) pixel_height = 1;
min_portion = 20 / pixel_height;
frame = XFRAME (XWINDOW (win)->frame);
......@@ -5750,6 +5751,7 @@ - (void)setFrame: (NSRect)newRect
NSTRACE (EmacsScroller_setFrame);
/* BLOCK_INPUT; */
pixel_height = NSHeight (newRect);
if (pixel_height == 0) pixel_height = 1;
min_portion = 20 / pixel_height;
[super setFrame: newRect];
[self display];
......
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