mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Guard against updating geomech legend when no data is loaded.
This commit is contained in:
parent
2b7d7be3f1
commit
fa5be6a5e4
@ -388,7 +388,8 @@ void RimGeoMechView::updateLegends()
|
||||
}
|
||||
|
||||
if (!m_geomechCase || !m_viewer || !m_geomechCase->geoMechData()
|
||||
|| !this->isTimeStepDependentDataVisible() )
|
||||
|| !this->isTimeStepDependentDataVisible()
|
||||
|| !(cellResult()->resultAddress().isValid()) )
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user