mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-29 16:01:38 +00:00
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:
parent
793b5756d3
commit
04ef0e02ba
2 changed files with 9 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue