mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +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
|
@ -1,3 +1,9 @@
|
|||
2011-12-01 Eric Wasylishen <ewasylishen@gmail.com>
|
||||
|
||||
* Source/NSTextView.m
|
||||
(-_scheduleTextCheckingInVisibleRectIfNeeded): Check for
|
||||
nil before sending -rectValue to avoid crash
|
||||
|
||||
2011-11-28 Gregory Casamento <greg.casamento@gmail.com>
|
||||
|
||||
* Source/NSTextView.m (-buildUpTextNetwork:):
|
||||
|
|
|
@ -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…
Reference in a new issue