mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 05:40:37 +00:00
Detect and handle gaps in the soft invalidated layout information.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16639 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
4748f21adb
commit
8a2e943bbd
4 changed files with 25 additions and 16 deletions
|
@ -2359,7 +2359,7 @@ forStartOfGlyphRange: (NSRange)glyphRange
|
|||
|
||||
layout_glyph = tc->pos + tc->length;
|
||||
/*
|
||||
We must have layouts beyond all the soft-invalidated line frags,
|
||||
We must have glyphs beyond all the soft-invalidated line frags,
|
||||
so comparing with glyphs->glyph_length is ok.
|
||||
*/
|
||||
if (layout_glyph == glyphs->glyph_length)
|
||||
|
@ -2369,6 +2369,7 @@ forStartOfGlyphRange: (NSRange)glyphRange
|
|||
}
|
||||
|
||||
-(NSRect) _softInvalidateLineFragRect: (int)index
|
||||
firstGlyph: (unsigned int *)first_glyph
|
||||
nextGlyph: (unsigned int *)next_glyph
|
||||
inTextContainer: (NSTextContainer *)textContainer
|
||||
{
|
||||
|
@ -2388,6 +2389,7 @@ forStartOfGlyphRange: (NSRange)glyphRange
|
|||
return NSZeroRect;
|
||||
|
||||
lf = &tc->linefrags[tc->num_linefrags + index];
|
||||
*first_glyph = lf->pos;
|
||||
*next_glyph = lf->pos + lf->length;
|
||||
return lf->rect;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue