Guard against cell results color update on inactive cross sections

This commit is contained in:
Jacob Støren committed 2015-11-23 11:22:02 +01:00
1 parent 5ec200c4fb
commit b5c226aac1
1 file changed
+8 -2
@@ -57,7 +57,10 @@ void RimCrossSectionCollection::applySingleColorEffect()
for (size_t csIdx = 0; csIdx < m_crossSections.size(); ++csIdx)
{
RimCrossSection* cs = m_crossSections[csIdx];
cs->crossSectionPartMgr()->applySingleColorEffect();
if (cs->isActive)
{
cs->crossSectionPartMgr()->applySingleColorEffect();
}
}
}
@@ -69,7 +72,10 @@ void RimCrossSectionCollection::updateCellResultColor(size_t timeStepIndex)
for (size_t csIdx = 0; csIdx < m_crossSections.size(); ++csIdx)
{
RimCrossSection* cs = m_crossSections[csIdx];
cs->crossSectionPartMgr()->updateCellResultColor(timeStepIndex);
if (cs->isActive)
{
cs->crossSectionPartMgr()->updateCellResultColor(timeStepIndex);
}
}
}