Indentation tidyup

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10817 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Nicola Pero 2001-08-30 20:14:50 +00:00
parent 5128fe7499
commit 64720d2a5e
2 changed files with 9 additions and 5 deletions

View file

@ -555,10 +555,12 @@ forStartOfGlyphRange: (NSRange)glyphRange
- (NSSize) _sizeOfRange: (NSRange)aRange
{
if (!aRange.length || _textStorage == nil ||
NSMaxRange(aRange) > [_textStorage length])
return NSZeroSize;
if (aRange.length == 0 || _textStorage == nil
|| NSMaxRange(aRange) > [_textStorage length])
{
return NSZeroSize;
}
return [_textStorage sizeRange: aRange];
}

View file

@ -196,8 +196,10 @@ static Class concrete;
length = [self length];
// Multiple adds at the end might give a too long result
if (NSMaxRange(r) > length)
{
r.length = length - r.location;
}
/* The following call will potentially fix attributes. These changes
are done through NSTextStorage methods, which records the changes
by calling edited:range:changeInLength: - which modifies editedRange.