mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-01 13:21:56 +00:00
* Source/NSBox.m (-calcSizesAllowingNegative): Protect against
_cell being nil. * Source/NSBox.m (-initWithCoder:): Add a few default values. * Source/NSMenu.m (-_setGeometry): Protect against _aWindow being nil. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38003 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
3e8bcc22f4
commit
1a4ce08eb3
3 changed files with 43 additions and 4 deletions
|
@ -501,11 +501,14 @@ static BOOL menuBarVisible = YES;
|
|||
}
|
||||
}
|
||||
|
||||
origin = NSMakePoint(0, [[_aWindow screen] visibleFrame].size.height
|
||||
- [_aWindow frame].size.height);
|
||||
if ((_aWindow != nil) && ([_aWindow screen] != nil))
|
||||
{
|
||||
origin = NSMakePoint(0, [[_aWindow screen] visibleFrame].size.height
|
||||
- [_aWindow frame].size.height);
|
||||
|
||||
[_aWindow setFrameOrigin: origin];
|
||||
[_bWindow setFrameOrigin: origin];
|
||||
[_aWindow setFrameOrigin: origin];
|
||||
[_bWindow setFrameOrigin: origin];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue