mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 10:01:14 +00:00
Corrected problem in processEditing. The change range got to big
after repeated adding at the end. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@6701 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
0851f1ed7c
commit
0b61b7ec7f
1 changed files with 4 additions and 0 deletions
|
@ -194,6 +194,10 @@ static Class concrete;
|
|||
|
||||
r = editedRange;
|
||||
r.length += editedDelta;
|
||||
// Multiple adds at the end might give a too long result
|
||||
if (NSMaxRange(r) > [self length])
|
||||
r.length = [self length] - r.location;
|
||||
|
||||
[self fixAttributesInRange: r];
|
||||
|
||||
[nc postNotificationName: NSTextStorageDidProcessEditingNotification
|
||||
|
|
Loading…
Reference in a new issue