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:
mguesdon 2001-12-11 12:35:00 +00:00
parent 111faf43f3
commit 1923113da0
2 changed files with 9 additions and 1 deletions

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;