mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 16:20:46 +00:00
(-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:
parent
67626efae4
commit
a2079ad1b2
2 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue