Fix calculation of used rect.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@19861 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Alexander Malmberg 2004-08-10 00:08:42 +00:00
parent 432df0d14d
commit 36f5227473
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2004-08-10 02:01 Alexander Malmberg <alexander@malmberg.org>
* Source/GSLayoutManager.m (-usedRectForTextContainer:): Fix
the calculation of the used rectangle.
2004-08-10 00:47 Alexander Malmberg <alexander@malmberg.org>
* Source/NSAttributedString.m (cache_init, cache_init_real): Add

View file

@ -2218,9 +2218,9 @@ forStartOfGlyphRange: (NSRange)glyphRange
if (NSMinY(lf->used_rect) < y0)
y0 = NSMinY(lf->used_rect);
if (NSMaxX(lf->used_rect) > x1)
x1 = NSMinX(lf->used_rect);
x1 = NSMaxX(lf->used_rect);
if (NSMaxY(lf->used_rect) > y1)
y1 = NSMinY(lf->used_rect);
y1 = NSMaxY(lf->used_rect);
}
used = NSMakeRect(x0, y0, x1 - x0, y1 - y0);
}