(-usedRectForTextContainer:): Return sane value if there are no line frag rects in the text container.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@15750 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Alexander Malmberg 2003-01-28 19:05:09 +00:00
parent 67626efae4
commit a2079ad1b2
2 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,11 @@
2003-01-28 20:02 Alexander Malmberg <alexander@malmberg.org>
* Source/GSHorizontalTypesetter: Set proper used rect for line frag
rects.
* Source/GSLayoutManager.m (-usedRectForTextContainer:): Return sane
value if there are no line frag rects in the text container.
2003-01-28 17:55 Alexander Malmberg <alexander@malmberg.org>
* Source/GSLayoutManager.m (-layoutLineNewParagraph:): Try to make

View file

@ -1813,6 +1813,7 @@ forStartOfGlyphRange: (NSRange)glyphRange
}
[self _doLayoutToContainer: i];
used = NSZeroRect;
for (i = 0, lf = tc->linefrags; i < tc->num_linefrags; i++, lf++)
used = NSUnionRect(used, lf->used_rect);
return used;