From fce3d586cad22af5017d70ae380f430cb954e9fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jacob=20St=C3=B8ren?= Date: Wed, 12 Sep 2018 13:52:08 +0200 Subject: [PATCH] #3358 Fix missing update of 2D intersection views when completion type is recalculated --- ApplicationCode/ProjectDataModel/RimEclipseView.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ApplicationCode/ProjectDataModel/RimEclipseView.cpp b/ApplicationCode/ProjectDataModel/RimEclipseView.cpp index 6ebc58b408..2b1cb1d59a 100644 --- a/ApplicationCode/ProjectDataModel/RimEclipseView.cpp +++ b/ApplicationCode/ProjectDataModel/RimEclipseView.cpp @@ -96,6 +96,7 @@ #include #include +#include "Rim2dIntersectionView.h" @@ -1414,6 +1415,15 @@ void RimEclipseView::calculateCompletionTypeAndRedrawIfRequired() if (isDependingOnCompletionType) { this->loadDataAndUpdate(); + + std::vector intersections = m_crossSectionCollection->intersections(); + for (auto intersection : intersections) + { + if ( intersection && intersection->correspondingIntersectionView() ) + { + intersection->correspondingIntersectionView()->scheduleCreateDisplayModelAndRedraw(); + } + } } for (const auto& propFilter : m_propertyFilterCollection()->propertyFilters)