From 9873f3cfc65722e7a8683d209081c99250ddcb53 Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Thu, 4 Sep 2014 08:39:44 +0200 Subject: [PATCH] Do not show fault result legend when fault result is disabled --- ApplicationCode/ProjectDataModel/RimReservoirView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ApplicationCode/ProjectDataModel/RimReservoirView.cpp b/ApplicationCode/ProjectDataModel/RimReservoirView.cpp index cf8bf0c3f4..40723dfa28 100644 --- a/ApplicationCode/ProjectDataModel/RimReservoirView.cpp +++ b/ApplicationCode/ProjectDataModel/RimReservoirView.cpp @@ -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); }