mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
When no ternary component is present, hide TERNARY result
This commit is contained in:
@@ -1453,7 +1453,8 @@ void RimReservoirView::updateLegends()
|
||||
|
||||
viewer()->removeOverlayItem(this->cellResult()->ternaryLegendConfig->legend());
|
||||
|
||||
if (this->cellResult()->isTernarySaturationSelected())
|
||||
size_t maxTimeStepCount = results->maxTimeStepCount();
|
||||
if (this->cellResult()->isTernarySaturationSelected() && maxTimeStepCount > 1)
|
||||
{
|
||||
RimReservoirCellResultsStorage* gridCellResults = this->cellResult()->currentGridCellResults();
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user