From c32590a5dad25ad27e6cacf118bfc737a7c67aa9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Jensen?= Date: Mon, 27 Aug 2018 11:22:57 +0200 Subject: [PATCH] #3247 Create Multiple Fractures. Det default result variable to Conductivity --- .../RicCreateMultipleFracturesFeature.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/ApplicationCode/Commands/FractureCommands/RicCreateMultipleFracturesFeature.cpp b/ApplicationCode/Commands/FractureCommands/RicCreateMultipleFracturesFeature.cpp index b6124e8ebe..42e81bc374 100644 --- a/ApplicationCode/Commands/FractureCommands/RicCreateMultipleFracturesFeature.cpp +++ b/ApplicationCode/Commands/FractureCommands/RicCreateMultipleFracturesFeature.cpp @@ -33,6 +33,8 @@ #include "RimWellPath.h" #include "RimWellPathFracture.h" #include "RimWellPathFractureCollection.h" +#include "RimEclipseView.h" +#include "RimStimPlanColors.h" #include "Riu3DMainWindowTools.h" @@ -112,6 +114,16 @@ void RicCreateMultipleFracturesFeature::slotAppendFractures() { RimWellPathFractureCollection* fractureCollection = item.wellPath->fractureCollection(); + // If this is the first fracture, set default result name + if (fractureCollection->fractures.empty()) + { + RimEclipseView* activeView = dynamic_cast(RiaApplication::instance()->activeReservoirView()); + if (activeView) + { + activeView->fractureColors()->setDefaultResultName(); + } + } + RimWellPathFracture* fracture = new RimWellPathFracture(); fractureCollection->fractures.push_back(fracture);