From 259df01e0a50e666e3d272d7b145e6908e96f6e0 Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Fri, 23 Sep 2016 13:11:35 +0200 Subject: [PATCH] #817 Regenerate geometry when intersection box is deleted --- ApplicationCode/Commands/RicDeleteItemExec.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/ApplicationCode/Commands/RicDeleteItemExec.cpp b/ApplicationCode/Commands/RicDeleteItemExec.cpp index b973602d51..d0e54a8ac8 100644 --- a/ApplicationCode/Commands/RicDeleteItemExec.cpp +++ b/ApplicationCode/Commands/RicDeleteItemExec.cpp @@ -22,9 +22,10 @@ #include "RicDeleteItemExecData.h" #include "RimCellRangeFilterCollection.h" -#include "RimIntersectionCollection.h" #include "RimEclipsePropertyFilterCollection.h" #include "RimGeoMechPropertyFilterCollection.h" +#include "RimIntersectionBoxCollection.h" +#include "RimIntersectionCollection.h" #include "RimProject.h" #include "RimView.h" #include "RimViewLinkerCollection.h" @@ -110,6 +111,13 @@ void RicDeleteItemExec::redo() view->scheduleCreateDisplayModelAndRedraw(); } + RimIntersectionBoxCollection* intersectionBoxColl; + parentObj->firstAnchestorOrThisOfType(intersectionBoxColl); + if (view && intersectionBoxColl) + { + view->scheduleCreateDisplayModelAndRedraw(); + } + RimWellPathCollection* wellPathColl; parentObj->firstAnchestorOrThisOfType(wellPathColl);