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:
Nicola Pero 2001-11-05 11:47:29 +00:00
parent 420c1a2dfb
commit a8e28ba039

View file

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