Commit 4b9a9a30 authored by Cédric Traizet's avatar Cédric Traizet

BUG : no data flags when there is no nodata values should be set to true after...

BUG : no data flags when there is no nodata values should be set to true after setting the functor flags
parent ec4f6f2b
......@@ -156,7 +156,7 @@ protected:
if(!ret)
{
noDataValueAvailable.resize(this->GetInput()->GetNumberOfComponentsPerPixel(),true);
noDataValueAvailable.resize(this->GetInput()->GetNumberOfComponentsPerPixel(),false);
noDataValues.resize(this->GetInput()->GetNumberOfComponentsPerPixel(),0);
}
......@@ -165,7 +165,7 @@ protected:
std::vector<bool> flags = noDataValueAvailable;
if(this->GetFunctor().m_NaNIsNoData)
if((this->GetFunctor().m_NaNIsNoData) || (!ret))
{
flags = std::vector<bool>(flags.size(),true);
}
......
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