mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-01 00:00:48 +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
7a815aa384
commit
a3603ff386
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>
|
2010-04-24 Doug Simons <doug.simons@testplant.com>
|
||||||
|
|
||||||
* Headers/AppKit/NSMenu.h:
|
* Headers/AppKit/NSMenu.h:
|
||||||
|
|
|
@ -3330,6 +3330,8 @@ resetCursorRectsForView(NSView *theView)
|
||||||
- (void) _checkTrackingRectangles: (NSView*)theView
|
- (void) _checkTrackingRectangles: (NSView*)theView
|
||||||
forEvent: (NSEvent*)theEvent
|
forEvent: (NSEvent*)theEvent
|
||||||
{
|
{
|
||||||
|
if (theView == nil)
|
||||||
|
return;
|
||||||
if (theView->_rFlags.has_trkrects)
|
if (theView->_rFlags.has_trkrects)
|
||||||
{
|
{
|
||||||
NSArray *tr = theView->_tracking_rects;
|
NSArray *tr = theView->_tracking_rects;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue