mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-10 16:20:42 +00:00
Tidied
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@8248 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
c78a6ca413
commit
e885e07c3e
1 changed files with 3 additions and 1 deletions
|
@ -307,6 +307,7 @@ static inline int getDigits(const char *from, char *to, int limit)
|
|||
NSString *tForm;
|
||||
NSString *TForm;
|
||||
NSMutableData *fd;
|
||||
BOOL changedFormat = NO;
|
||||
|
||||
if (locale == nil)
|
||||
{
|
||||
|
@ -412,6 +413,7 @@ static inline int getDigits(const char *from, char *to, int limit)
|
|||
}
|
||||
[sub getCharacters: &format[pos-1]];
|
||||
formatLen += sLen - 2;
|
||||
changedFormat = YES;
|
||||
pos -= 2; // Re-parse the newly substituted data.
|
||||
}
|
||||
}
|
||||
|
@ -422,7 +424,7 @@ static inline int getDigits(const char *from, char *to, int limit)
|
|||
/*
|
||||
* Set up calendar format.
|
||||
*/
|
||||
if (formatLen > [fmt length])
|
||||
if (changedFormat == YES)
|
||||
{
|
||||
fmt = [NSString stringWithCharacters: format length: formatLen];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue