From 59c25c676290ab7739e9a5226622d9c2173895a6 Mon Sep 17 00:00:00 2001 From: Kristian Bendiksen Date: Tue, 22 Oct 2019 11:08:44 +0200 Subject: [PATCH] #4857 Make RicNewWellLogCurveExtractionFeature picking more conceptually correct. The previous code did also work. --- .../WellLogCommands/RicNewWellLogCurveExtractionFeature.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ApplicationCode/Commands/WellLogCommands/RicNewWellLogCurveExtractionFeature.cpp b/ApplicationCode/Commands/WellLogCommands/RicNewWellLogCurveExtractionFeature.cpp index 5a4fcb7541..76fb7049b6 100644 --- a/ApplicationCode/Commands/WellLogCommands/RicNewWellLogCurveExtractionFeature.cpp +++ b/ApplicationCode/Commands/WellLogCommands/RicNewWellLogCurveExtractionFeature.cpp @@ -28,6 +28,7 @@ #include "RigWellLogCurveData.h" #include "Rim3dView.h" +#include "RimGridView.h" #include "RimProject.h" #include "RimSimWellInView.h" #include "RimSimWellInViewCollection.h" @@ -81,7 +82,7 @@ void RicNewWellLogCurveExtractionFeature::onActionTriggered( bool isChecked ) RimWellPath* wellPath = caf::SelectionManager::instance()->selectedItemOfType(); int branchIndex = -1; RimSimWellInView* simWell = RicWellLogTools::selectedSimulationWell( &branchIndex ); - Rim3dView* view = RiaApplication::instance()->activeReservoirView(); + Rim3dView* view = RiaApplication::instance()->activeMainOrComparisonGridView(); bool useBranchDetection = true; RimSimWellInViewCollection* simWellColl = nullptr; if ( simWell )