mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-04 13:30:41 +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
4f2e90c048
commit
3a45cca4be
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>
|
2003-01-28 17:55 Alexander Malmberg <alexander@malmberg.org>
|
||||||
|
|
||||||
* Source/GSLayoutManager.m (-layoutLineNewParagraph:): Try to make
|
* Source/GSLayoutManager.m (-layoutLineNewParagraph:): Try to make
|
||||||
|
|
|
@ -1813,6 +1813,7 @@ forStartOfGlyphRange: (NSRange)glyphRange
|
||||||
}
|
}
|
||||||
|
|
||||||
[self _doLayoutToContainer: i];
|
[self _doLayoutToContainer: i];
|
||||||
|
used = NSZeroRect;
|
||||||
for (i = 0, lf = tc->linefrags; i < tc->num_linefrags; i++, lf++)
|
for (i = 0, lf = tc->linefrags; i < tc->num_linefrags; i++, lf++)
|
||||||
used = NSUnionRect(used, lf->used_rect);
|
used = NSUnionRect(used, lf->used_rect);
|
||||||
return used;
|
return used;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue