* nsterm.m (setFrame, initFrame): Make sure pixel_height doesn't become
zero. Fixes: debbugs:7348
This commit is contained in:
parent
8a6f24e5f2
commit
9aabf64c78
2 changed files with 7 additions and 0 deletions
|
|
@ -1,3 +1,8 @@
|
|||
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 @@ ns_term_shutdown (int sig)
|
|||
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 @@ ns_term_shutdown (int sig)
|
|||
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];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue