Skip to content
Snippets Groups Projects
Commit f5bbb368 authored by Emmanuel Christophe's avatar Emmanuel Christophe
Browse files

BUG: fix rendering function bug

parent 99232957
No related branches found
No related tags found
No related merge requests found
......@@ -254,15 +254,21 @@ public:
if (allMinMaxWithinDynamic && enoughDynamic)
{
this->AutoMinMaxOff();
m_Minimum.clear();
m_Maximum.clear();
}
}
}
if (!m_AutoMinMax)
{
m_Minimum.clear();
m_Maximum.clear();
m_Minimum.resize(nbComps, 0);
m_Maximum.resize(nbComps, 255);
if (m_Minimum.empty())
{
m_Minimum.resize(nbComps, 0);
}
if (m_Maximum.empty())
{
m_Maximum.resize(nbComps, 255);
}
}
typename ExtremaVectorType::const_iterator minIt = this->m_Minimum.begin();
......
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