mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-01 12:21:55 +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,9 +555,11 @@ forStartOfGlyphRange: (NSRange)glyphRange
|
||||||
|
|
||||||
- (NSSize) _sizeOfRange: (NSRange)aRange
|
- (NSSize) _sizeOfRange: (NSRange)aRange
|
||||||
{
|
{
|
||||||
if (!aRange.length || _textStorage == nil ||
|
if (aRange.length == 0 || _textStorage == nil
|
||||||
NSMaxRange(aRange) > [_textStorage length])
|
|| NSMaxRange(aRange) > [_textStorage length])
|
||||||
|
{
|
||||||
return NSZeroSize;
|
return NSZeroSize;
|
||||||
|
}
|
||||||
|
|
||||||
return [_textStorage sizeRange: aRange];
|
return [_textStorage sizeRange: aRange];
|
||||||
}
|
}
|
||||||
|
|
|
@ -196,7 +196,9 @@ static Class concrete;
|
||||||
length = [self length];
|
length = [self length];
|
||||||
// Multiple adds at the end might give a too long result
|
// Multiple adds at the end might give a too long result
|
||||||
if (NSMaxRange(r) > length)
|
if (NSMaxRange(r) > length)
|
||||||
|
{
|
||||||
r.length = length - r.location;
|
r.length = length - r.location;
|
||||||
|
}
|
||||||
|
|
||||||
/* The following call will potentially fix attributes. These changes
|
/* The following call will potentially fix attributes. These changes
|
||||||
are done through NSTextStorage methods, which records the changes
|
are done through NSTextStorage methods, which records the changes
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue