mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-29 19:07:38 +00:00
* Source/NSTextView.m
(-_scheduleTextCheckingInVisibleRectIfNeeded): Check for nil before sending -rectValue to avoid crash git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34238 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
14d5d889be
commit
f218a41010
2 changed files with 8 additions and 1 deletions
|
@ -6201,7 +6201,8 @@ or add guards
|
|||
const NSRect visibleRect = [self visibleRect];
|
||||
if (!NSEqualRects(visibleRect, _lastCheckedRect))
|
||||
{
|
||||
if (NSEqualRects(visibleRect, [[_textCheckingTimer userInfo] rectValue]))
|
||||
if (nil != _textCheckingTimer
|
||||
&& NSEqualRects(visibleRect, [[_textCheckingTimer userInfo] rectValue]))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue