mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Do not show fault result legend when fault result is disabled
This commit is contained in:
parent
ca2558bf20
commit
9873f3cfc6
@ -1320,7 +1320,7 @@ void RimReservoirView::updateLegends()
|
||||
CVF_ASSERT(results);
|
||||
|
||||
updateMinMaxValuesAndAddLegendToView(QString("Cell Results: \n"), this->cellResult(), results);
|
||||
if (this->faultResultSettings()->hasValidCustomResult())
|
||||
if (this->faultResultSettings()->showCustomFaultResult() && this->faultResultSettings()->hasValidCustomResult())
|
||||
{
|
||||
updateMinMaxValuesAndAddLegendToView(QString("Fault Results: \n"), this->faultResultSettings()->customFaultResult(), results);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user