mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-26 07:50:58 +00:00
(-setAttributes:range:): Call -edited:range:changeInLength: with the range that was changed (and not the range attributes could be merged for).
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@15994 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
28b8faf0b6
commit
b072096e67
1 changed files with 2 additions and 1 deletions
|
@ -548,6 +548,7 @@ _attributesAtIndexEffectiveRange(
|
||||||
{
|
{
|
||||||
unsigned tmpLength, arrayIndex, arraySize;
|
unsigned tmpLength, arrayIndex, arraySize;
|
||||||
NSRange effectiveRange;
|
NSRange effectiveRange;
|
||||||
|
NSRange originalRange = range;
|
||||||
unsigned afterRangeLoc, beginRangeLoc;
|
unsigned afterRangeLoc, beginRangeLoc;
|
||||||
NSDictionary *attrs;
|
NSDictionary *attrs;
|
||||||
NSZone *z = [self zone];
|
NSZone *z = [self zone];
|
||||||
|
@ -667,7 +668,7 @@ SANITY();
|
||||||
|
|
||||||
SANITY();
|
SANITY();
|
||||||
[self edited: NSTextStorageEditedAttributes
|
[self edited: NSTextStorageEditedAttributes
|
||||||
range: range
|
range: originalRange
|
||||||
changeInLength: 0];
|
changeInLength: 0];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue