mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-01 14:51:55 +00:00
Fix edge case in soft invalidation.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16002 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
51b9ab7c9a
commit
3f6628092d
2 changed files with 17 additions and 1 deletions
|
@ -1822,7 +1822,7 @@ this file describes this.
|
|||
/* printf("original=%i, new=%i, delta %i\n",
|
||||
original_last_glyph,new_last_glyph,glyph_delta);*/
|
||||
|
||||
if (r.location < layout_char)
|
||||
if (r.location <= layout_char)
|
||||
{
|
||||
unsigned int glyph_index, last_glyph;
|
||||
textcontainer_t *tc;
|
||||
|
@ -1831,6 +1831,10 @@ this file describes this.
|
|||
int new_num;
|
||||
NSRange char_range;
|
||||
|
||||
/*
|
||||
Note that r.location might equal layout_char, in which case
|
||||
r.location won't actually have any text container or line frag.
|
||||
*/
|
||||
if (r.location == [_textStorage length])
|
||||
{
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue