2001-12-11 Manuel Guesdon <mguesdon@orange-concept.com>

* Source/NSString.m: corrected  bug in +stringByTrimmingSpaces
		(there was an exception when the string contains only spaces).


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@11701 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Manuel Guesdon 2001-12-11 12:35:00 +00:00
parent 793b5756d3
commit 04ef0e02ba
2 changed files with 9 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2001-12-11 Manuel Guesdon <mguesdon@orange-concept.com>
* Source/NSString.m: corrected bug in +stringByTrimmingSpaces
(there was an exception when the string contains only spaces).
2001-12-08 Richard Frith-Macdonald <rfm@gnu.org>
* Documentation/gsdoc/NSDistantObjectRequest.gsdoc: note that the

View file

@ -3673,7 +3673,10 @@ handle_printf_atsign (FILE *stream,
}
if (start > 0 || end < length-1)
{
return [self substringFromRange: NSMakeRange(start, end + 1 - start)];
if (start<end)
return [self substringFromRange: NSMakeRange(start, end + 1 - start)];
else
return [NSStringClass string];
}
}
return self;