mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 03:11:18 +00:00
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:
parent
b136536052
commit
3c4b83960f
2 changed files with 9 additions and 0 deletions
|
@ -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:
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue