From 57a1cd0c64d08d06588b261630cbe3e479acd747 Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Thu, 2 Feb 2017 07:48:58 +0100 Subject: [PATCH] Fixed missing regeneration of geometry when deleting all well path fractures --- .../Commands/RicWellPathFracturesDeleteAllFeature.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ApplicationCode/Commands/RicWellPathFracturesDeleteAllFeature.cpp b/ApplicationCode/Commands/RicWellPathFracturesDeleteAllFeature.cpp index ffacb604f3..0152d7c1cb 100644 --- a/ApplicationCode/Commands/RicWellPathFracturesDeleteAllFeature.cpp +++ b/ApplicationCode/Commands/RicWellPathFracturesDeleteAllFeature.cpp @@ -19,8 +19,9 @@ #include "RicWellPathFracturesDeleteAllFeature.h" -#include "RimWellPathFractureCollection.h" #include "RimEclipseView.h" +#include "RimWellPathCollection.h" +#include "RimWellPathFractureCollection.h" #include "cafSelectionManager.h" @@ -64,10 +65,9 @@ void RicWellPathFracturesDeleteAllFeature::onActionTriggered(bool isChecked) fractureCollection->uiCapability()->updateConnectedEditors(); - RimEclipseView* mainView = nullptr; - fractureCollection->firstAncestorOrThisOfType(mainView); - if (mainView) mainView->scheduleCreateDisplayModelAndRedraw(); - + RimWellPathCollection* wellPathColl = nullptr; + fractureCollection->firstAncestorOrThisOfType(wellPathColl); + if (wellPathColl) wellPathColl->scheduleGeometryRegenAndRedrawViews(); } }