From a3d8cbe6a8bdf7b51c37c13b213d3264a42edf6b Mon Sep 17 00:00:00 2001 From: Richard Frith-MacDonald Date: Fri, 17 Dec 1999 07:03:00 +0000 Subject: [PATCH] Fix to permit access to end of string git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5551 72102866-910b-0410-8b05-ffd578937521 --- Source/GSTextStorage.m | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Source/GSTextStorage.m b/Source/GSTextStorage.m index 3023078ea..b3133044d 100644 --- a/Source/GSTextStorage.m +++ b/Source/GSTextStorage.m @@ -200,6 +200,11 @@ _attributesAtIndexEffectiveRange( if (index >= tmpLength) { + if (index == tmpLength) + { + *foundIndex = tmpLength; + return nil; + } [NSException raise: NSRangeException format: @"index is out of range in function " @"_attributesAtIndexEffectiveRange()"];