Show
Ignore:
Timestamp:
06/25/09 16:06:29 (5 years ago)
Author:
robert
Message:

From Mathias Froehlich, changes from atof to use osg::asciiToFloat() to avoid locale issues with atof

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/branches/OpenSceneGraph-2.8/src/osgPlugins/txp/ReaderWriterTXP.cpp

    r9637 r10413  
    540540        if(!token) 
    541541            break; 
    542         locs[idx].zmin = (float)atof(token); 
     542        locs[idx].zmin = osg::asciiToFloat(token); 
    543543        nbTokenRead++; 
    544544 
     
    547547        if(!token) 
    548548            break; 
    549         locs[idx].zmax= (float)atof(token); 
     549        locs[idx].zmax = osg::asciiToFloat(token); 
    550550        nbTokenRead++; 
    551551