diff --git a/ApplicationCode/ProjectDataModel/RimGeoMechView.cpp b/ApplicationCode/ProjectDataModel/RimGeoMechView.cpp index dd0c40e46f..047e51f4a1 100644 --- a/ApplicationCode/ProjectDataModel/RimGeoMechView.cpp +++ b/ApplicationCode/ProjectDataModel/RimGeoMechView.cpp @@ -375,7 +375,10 @@ void RimGeoMechView::updateLegends() this->updateLegendTextAndRanges(cellResult()->legendConfig(), m_currentTimeStep()); - m_viewer->addColorLegendToBottomLeftCorner(cellResult()->legendConfig->legend()); + if (cellResult()->hasResult()) + { + m_viewer->addColorLegendToBottomLeftCorner(cellResult()->legendConfig->legend()); + } } }