mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +00:00
Minor indentation tidyups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11313 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
420c1a2dfb
commit
a8e28ba039
1 changed files with 8 additions and 6 deletions
|
@ -266,22 +266,24 @@ static NSCharacterSet *invSelectionWordGranularitySet;
|
|||
return MAX(0, min - 1);
|
||||
}
|
||||
|
||||
- (NSRect)lineFragmentRectForGlyphAtIndex:(unsigned)index
|
||||
effectiveRange:(NSRange*)lineFragmentRange
|
||||
- (NSRect)lineFragmentRectForGlyphAtIndex: (unsigned)index
|
||||
effectiveRange: (NSRange *)lineFragmentRange
|
||||
{
|
||||
_GNULineLayoutInfo *currentInfo;
|
||||
|
||||
|
||||
if (![_textStorage length] || ![_lineLayoutInformation count])
|
||||
{
|
||||
return NSMakeRect(0, 0, 0, 12);
|
||||
}
|
||||
|
||||
|
||||
currentInfo = [_lineLayoutInformation
|
||||
objectAtIndex: [self lineLayoutIndexForGlyphIndex:
|
||||
index]];
|
||||
objectAtIndex: [self lineLayoutIndexForGlyphIndex:
|
||||
index]];
|
||||
|
||||
if (lineFragmentRange)
|
||||
{
|
||||
*lineFragmentRange = currentInfo->glyphRange;
|
||||
}
|
||||
|
||||
return currentInfo->lineFragmentRect;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue