mirror of
https://github.com/gnustep/libs-gsweb.git
synced 2025-05-30 16:50:52 +00:00
do a stringValue on numbers to avoid an exception later.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@18303 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
6dbcbb9e9d
commit
1e8723dd0d
2 changed files with 8 additions and 0 deletions
|
@ -142,6 +142,10 @@ RCS_ID("$Id$")
|
|||
if (!formatter)
|
||||
{
|
||||
formattedValue=valueValue;
|
||||
// if we dont do this we get an exception on NSNumbers later. dave at turbocat.de
|
||||
if ([formattedValue isKindOfClass:[NSNumber class]]) {
|
||||
formattedValue = [(id)formattedValue stringValue];
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue