From 42ab0485bde8740c4dbf1f47aae692899a4bf4c9 Mon Sep 17 00:00:00 2001 From: Jon Jenssen Date: Wed, 26 Aug 2020 17:11:13 +0200 Subject: [PATCH] Make sure we refresh the scene after setting a new color legend, not before --- ApplicationCode/Commands/RicImportFormationNamesFeature.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ApplicationCode/Commands/RicImportFormationNamesFeature.cpp b/ApplicationCode/Commands/RicImportFormationNamesFeature.cpp index 37bfaa8a98..2299ec8153 100644 --- a/ApplicationCode/Commands/RicImportFormationNamesFeature.cpp +++ b/ApplicationCode/Commands/RicImportFormationNamesFeature.cpp @@ -225,7 +225,6 @@ void RicImportFormationNamesFeature::setFormationCellResultAndLegend( Rim3dView* eclView->cellResult()->updateUiFieldsFromActiveResult(); eclView->cellResult()->loadDataAndUpdate(); eclView->updateAllRequiredEditors(); - eclView->updateDisplayModelForCurrentTimeStepAndRedraw(); } RimGeoMechView* geoMechView = dynamic_cast( activeView ); @@ -244,4 +243,5 @@ void RicImportFormationNamesFeature::setFormationCellResultAndLegend( Rim3dView* legendConfig->setColorLegend( legend ); } } + if ( eclView ) eclView->updateDisplayModelForCurrentTimeStepAndRedraw(); }