Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
9aabf64c
Commit
9aabf64c
authored
Feb 08, 2011
by
Jan Djärv
Browse files
* nsterm.m (setFrame, initFrame): Make sure pixel_height doesn't become
zero. Fixes: debbugs:7348
parent
8a6f24e5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
src/ChangeLog
src/ChangeLog
+5
-0
src/nsterm.m
src/nsterm.m
+2
-0
No files found.
src/ChangeLog
View file @
9aabf64c
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):
...
...
src/nsterm.m
View file @
9aabf64c
...
...
@@ -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];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment