mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fix a surface collection crash in RimGeoMechView
This commit is contained in:
parent
fffc36eadb
commit
bff2abe85b
@ -1858,7 +1858,7 @@ bool RimEclipseView::isTimeStepDependentDataVisible() const
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( this->surfaceInViewCollection()->hasAnyActiveSeparateResults() )
|
if ( this->surfaceInViewCollection() && this->surfaceInViewCollection()->hasAnyActiveSeparateResults() )
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -321,7 +321,10 @@ void RimGeoMechView::onCreateDisplayModel()
|
|||||||
onUpdateLegends();
|
onUpdateLegends();
|
||||||
m_vizLogic->updateStaticCellColors( -1 );
|
m_vizLogic->updateStaticCellColors( -1 );
|
||||||
m_intersectionCollection->applySingleColorEffect();
|
m_intersectionCollection->applySingleColorEffect();
|
||||||
|
if ( m_surfaceCollection )
|
||||||
|
{
|
||||||
m_surfaceCollection->applySingleColorEffect();
|
m_surfaceCollection->applySingleColorEffect();
|
||||||
|
}
|
||||||
|
|
||||||
m_overlayInfoConfig()->update3DInfo();
|
m_overlayInfoConfig()->update3DInfo();
|
||||||
}
|
}
|
||||||
@ -782,7 +785,7 @@ bool RimGeoMechView::isTimeStepDependentDataVisible() const
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( this->surfaceInViewCollection()->hasAnyActiveSeparateResults() )
|
if ( this->surfaceInViewCollection() && this->surfaceInViewCollection()->hasAnyActiveSeparateResults() )
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user