Commit 919588a5 authored by Jordi Inglada's avatar Jordi Inglada

MRG

parents ce0a11cc 1182888a
......@@ -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;
}
......
......@@ -506,6 +506,11 @@ namespace otb
ImageWidgetBase<TPixel>
::RebuildOpenGlImageOverlayBuffer(void)
{
if(m_ImageOverlay->GetNumberOfComponentsPerPixel()<3)
{
itkExceptionMacro(<<"Image overlay should have at least 3 channels.");
}
//otbMsgDebugMacro(<<"RebuildOpenGlImageOverlayBuffer");
if(m_OpenGlImageOverlayBuffer != NULL)
{
......
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