NSGattributes string fix.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@5552 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 1999-12-17 07:06:29 +00:00
parent 34094a0a23
commit 0491ec2f90
2 changed files with 10 additions and 0 deletions

View file

@ -1,3 +1,8 @@
Fri Dec 17 7:03:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
* Source/NSGAttributedString.m: Patch (slightly modified) by Adam Fedor
to permit setting attributes on an empty string (as a no-op).
Wed Dec 15 18:50:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
* Source/NSHost.m: Update again - record current host name for duration

View file

@ -200,6 +200,11 @@ _attributesAtIndexEffectiveRange(
if (index >= tmpLength)
{
if (index == tmpLength)
{
*_infoArray = index;
return nil;
}
[NSException raise: NSRangeException
format: @"index is out of range in function "
@"_attributesAtIndexEffectiveRange()"];