* 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:
Eric Wasylishen 2011-12-02 05:10:54 +00:00
parent 14d5d889be
commit f218a41010
2 changed files with 8 additions and 1 deletions

View file

@ -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:):

View file

@ -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;
}