From: Simon Rit Date: Tue, 5 Mar 2013 10:54:08 +0000 (+0100) Subject: Improved robustness with Esrf reader X-Git-Tag: v1.4.0~241^2~1 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=e81483f50f38a99dc4340b198a2297bf957046be;p=clitk.git Improved robustness with Esrf reader --- diff --git a/common/clitkEsrfHstImageIO.cxx b/common/clitkEsrfHstImageIO.cxx index 8023ddd..e9b8fdf 100644 --- a/common/clitkEsrfHstImageIO.cxx +++ b/common/clitkEsrfHstImageIO.cxx @@ -79,7 +79,7 @@ bool clitk::EsrfHstImageIO::CanReadFile(const char* FileNameToRead) std::string firstLine; std::getline(is, firstLine); - if(firstLine != std::string("") ) + if(firstLine.find( std::string("") ) == std::string::npos) return false; return true;