From e81483f50f38a99dc4340b198a2297bf957046be Mon Sep 17 00:00:00 2001 From: Simon Rit Date: Tue, 5 Mar 2013 11:54:08 +0100 Subject: [PATCH] Improved robustness with Esrf reader --- common/clitkEsrfHstImageIO.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.47.1