mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 07:10:37 +00:00
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:
parent
5128fe7499
commit
64720d2a5e
2 changed files with 9 additions and 5 deletions
|
@ -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];
|
||||
}
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue