From b072096e676bf099ed356a7357a3efe27f9ee1d3 Mon Sep 17 00:00:00 2001 From: alexm Date: Tue, 18 Feb 2003 00:35:28 +0000 Subject: [PATCH] (-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 --- Source/GSTextStorage.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/GSTextStorage.m b/Source/GSTextStorage.m index 596ad956a..ba16b0d56 100644 --- a/Source/GSTextStorage.m +++ b/Source/GSTextStorage.m @@ -548,6 +548,7 @@ _attributesAtIndexEffectiveRange( { unsigned tmpLength, arrayIndex, arraySize; NSRange effectiveRange; + NSRange originalRange = range; unsigned afterRangeLoc, beginRangeLoc; NSDictionary *attrs; NSZone *z = [self zone]; @@ -667,7 +668,7 @@ SANITY(); SANITY(); [self edited: NSTextStorageEditedAttributes - range: range + range: originalRange changeInLength: 0]; }