mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +00:00
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:
parent
432df0d14d
commit
36f5227473
2 changed files with 7 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue