Do not show fault result legend when fault result is disabled

This commit is contained in:
Magne Sjaastad 2014-09-04 08:39:44 +02:00
parent ca2558bf20
commit 9873f3cfc6

View File

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