Patch from George to fix bounding rect stuff

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10525 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2001-07-20 05:33:07 +00:00
parent 82fff1ebf0
commit 4adb0bb3b0
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2001-07-19 Georg Fleischmann
* gui/Source/GSSimpleLayoutManager.m
[GSSimpleLayoutManager boundingRectForGlyphRange:inTextContainer:]:
no inversion of rect.width (width - rect.size.width)
2001-07-17 Adam Fedor <fedor@gnu.org>
* Source/NSTableView.m (-addTableColumn:): Remove redundant mallocs.

View file

@ -323,7 +323,7 @@ static NSCharacterSet *invSelectionWordGranularitySet;
if (![_textStorage length] || ![_lineLayoutInformation count])
{
return NSMakeRect(0, 0, width, 12);
return NSMakeRect(0, 0, 0, 12);
}
i1 = [self lineLayoutIndexForGlyphIndex: aRange.location];
@ -339,7 +339,6 @@ static NSCharacterSet *invSelectionWordGranularitySet;
rect1 = NSUnionRect(rect1, currentInfo->usedRect);
}
rect1.size.width = width - rect1.origin.x;
return rect1;
}