Handle nil view passed to _checkTrackingRectangles:forEvent:

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30233 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Doug Simons 2010-04-24 17:21:22 +00:00
parent b136536052
commit 3c4b83960f
2 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,10 @@
2010-04-24 Doug Simons <doug.simons@testplant.com>
* Source/NSWindow.m:
Handle nil view passed to _checkTrackingRectangles:forEvent: (this
prevents a crash in Windows, e.g. when clicking the toolbar overflow
widget).
2010-04-24 Doug Simons <doug.simons@testplant.com>
* Headers/AppKit/NSMenu.h:

View file

@ -3330,6 +3330,8 @@ resetCursorRectsForView(NSView *theView)
- (void) _checkTrackingRectangles: (NSView*)theView
forEvent: (NSEvent*)theEvent
{
if (theView == nil)
return;
if (theView->_rFlags.has_trkrects)
{
NSArray *tr = theView->_tracking_rects;