Skip to content
Snippets Groups Projects
Commit 4b32191d authored by George Nachman's avatar George Nachman
Browse files

Work around lion widow restoration bug

parent 044ef61d
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -2660,6 +2660,11 @@ NSString *sessionsKey = @"sessions";
float charHeight = [self maxCharHeight:nil];
float charWidth = [self maxCharWidth:nil];
 
if (charWidth < 1 || charHeight < 1) {
// This avoids returning NaN's in OS 10.10.
return defaultFrame;
}
NSRect proposedFrame;
// Initially, set the proposed x-origin to remain unchanged in case we're
// zooming vertically only. The y-origin always goes to the top of the screen
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment