Skip to content
Snippets Groups Projects
Commit df8ad8b0 authored by Julien Michel's avatar Julien Michel
Browse files

BUG: Fixing logical error in NoDataHelper::ChangeNoData

parent 5e23c0d5
No related branches found
No related tags found
No related merge requests found
......@@ -101,17 +101,11 @@ template<typename T> T ChangeNoData(const T & pixel, const
return static_cast<T>(newValues[0]);
}
if(flags[0])
if(flags[0] && pixel == values[0])
{
if (pixel == values[0])
{
return static_cast<T>(newValues[0]);
}
}
else
{
return pixel;
return static_cast<T>(newValues[0]);
}
return pixel;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment