]> Creatis software - clitk.git/commitdiff
Improved robustness with Esrf reader
authorSimon Rit <simon.rit@creatis.insa-lyon.fr>
Tue, 5 Mar 2013 10:54:08 +0000 (11:54 +0100)
committerSimon Rit <simon.rit@creatis.insa-lyon.fr>
Tue, 5 Mar 2013 10:54:08 +0000 (11:54 +0100)
common/clitkEsrfHstImageIO.cxx

index 8023ddd62d5aff56046c7fa26c9b4b2a45007ca6..e9b8fdf3ed6227a14670706c91bcf21f3b3fbe23 100644 (file)
@@ -79,7 +79,7 @@ bool clitk::EsrfHstImageIO::CanReadFile(const char* FileNameToRead)
 
   std::string firstLine;
   std::getline(is, firstLine);
-  if(firstLine != std::string("<!-- PyHST VOLUME XML FILE -->") )
+  if(firstLine.find( std::string("<!-- PyHST VOLUME XML FILE -->") ) == std::string::npos)
     return false;
 
   return true;