Skip to content
Snippets Groups Projects
Commit 047322ca authored by Julien Malik's avatar Julien Malik
Browse files

BUG: side effect after modification of the RenderingFunction

parent 4bb013da
No related branches found
No related tags found
No related merge requests found
......@@ -206,6 +206,7 @@ public:
}
}
}
unsigned int nbComps = m_PixelRepresentationFunction->GetOutputSize();
if (m_AutoMinMax)
{
......@@ -237,6 +238,17 @@ public:
m_AutoMinMaxQuantile)));
}
}
else
{
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();
typename ExtremaVectorType::const_iterator maxIt = this->m_Maximum.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