#2489 Geo mech cases: Hide legend when result is not valid

This commit is contained in:
Rebecca Cox 2018-02-16 09:11:45 +01:00
parent 1fd6d10b69
commit 82343d6680

View File

@ -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());
}
}
}