diff --git a/NPLib/Tools/CalibrationManager.cxx b/NPLib/Tools/CalibrationManager.cxx index a03478b2a61c9ae7b8be73053c8fb64a4997fd1e..315b8b999a4502180cbefaa1e79a99105a44e0f9 100644 --- a/NPLib/Tools/CalibrationManager.cxx +++ b/NPLib/Tools/CalibrationManager.cxx @@ -178,8 +178,8 @@ void CalibrationManager::LoadParameterFromFile() if( it!=fToken.end() ) { vector<double> Coeff ; - while( !theLine.eof() ){ - theLine >> DataBuffer ; Coeff.push_back( atof(DataBuffer.c_str()) ) ; + while( theLine >> DataBuffer ){ + Coeff.push_back( atof(DataBuffer.c_str()) ) ; } // Check this parameter is not already define