]> git.eshelyaron.com Git - emacs.git/commitdiff
* nsterm.m (setFrame, initFrame): Make sure pixel_height doesn't become
authorJan Djärv <jan.h.d@swipnet.se>
Tue, 8 Feb 2011 07:19:20 +0000 (08:19 +0100)
committerJan Djärv <jan.h.d@swipnet.se>
Tue, 8 Feb 2011 07:19:20 +0000 (08:19 +0100)
zero.

Fixes: debbugs:7348
src/ChangeLog
src/nsterm.m

index 2b02030fd4f1700d4d22d81910dd74b1274fe42b..2df187383a4d52aa4dea9f91d93bdf93d73025eb 100644 (file)
@@ -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):
index addb6d01d718cd049fbd58e6e88ca2567d09016f..30b73c2fd13f2fc43a657bb08dca0f5d8a1fe043 100644 (file)
@@ -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];