Commit 3a388d0e authored by Thomas Feuvrier's avatar Thomas Feuvrier

BUG: reportError was not used in InternalReadHeaderInformation metho of...

BUG: reportError was not used in InternalReadHeaderInformation metho of otb::MWImageIO class. Consequently, the CanRead method throw an exception for all over formats (tif, ...)
parent 61968377
......@@ -213,7 +213,10 @@ bool MWImageIO::InternalReadHeaderInformation(std::fstream & file, const bool re
}
else
{
itkExceptionMacro(<< "MW : impossible to determine CodePix information of the image");
if( reportError == true )
{
itkExceptionMacro(<< "MW : impossible to determine CodePix information of the image");
}
return false;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment