From 312004446b4ed9e141f8bdfbc1d2d9c5e8400749 Mon Sep 17 00:00:00 2001 From: Rebecca Cox Date: Fri, 3 Nov 2017 13:47:51 +0100 Subject: [PATCH] #2002 RFT Plot: Update rftPlot editor on change of track/plot-settings --- .../ProjectDataModel/RimWellLogPlot.cpp | 9 ++++++++- .../ProjectDataModel/RimWellLogTrack.cpp | 15 ++++++++------- 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/ApplicationCode/ProjectDataModel/RimWellLogPlot.cpp b/ApplicationCode/ProjectDataModel/RimWellLogPlot.cpp index 2396347aca..d3f8208946 100644 --- a/ApplicationCode/ProjectDataModel/RimWellLogPlot.cpp +++ b/ApplicationCode/ProjectDataModel/RimWellLogPlot.cpp @@ -139,7 +139,14 @@ void RimWellLogPlot::fieldChangedByUi(const caf::PdmFieldHandle* changedField, c updateTracks(); if (m_viewer) m_viewer->updateChildrenLayout(); } - + + RimWellRftPlot* rftPlot(nullptr); + this->firstAncestorOrThisOfType(rftPlot); + + if (rftPlot) + { + rftPlot->updateConnectedEditors(); + } } //-------------------------------------------------------------------------------------------------- diff --git a/ApplicationCode/ProjectDataModel/RimWellLogTrack.cpp b/ApplicationCode/ProjectDataModel/RimWellLogTrack.cpp index b0ff2f8fa9..49b2476667 100644 --- a/ApplicationCode/ProjectDataModel/RimWellLogTrack.cpp +++ b/ApplicationCode/ProjectDataModel/RimWellLogTrack.cpp @@ -245,13 +245,6 @@ void RimWellLogTrack::fieldChangedByUi(const caf::PdmFieldHandle* changedField, else if (changedField == &m_showFormations) { loadDataAndUpdate(); - RimWellRftPlot* rftPlot; - this->firstAncestorOrThisOfType(rftPlot); - - if (rftPlot) - { - rftPlot->updateConnectedEditors(); - } } else if (changedField == &m_formationCase) { @@ -287,6 +280,14 @@ void RimWellLogTrack::fieldChangedByUi(const caf::PdmFieldHandle* changedField, { loadDataAndUpdate(); } + + RimWellRftPlot* rftPlot(nullptr); + this->firstAncestorOrThisOfType(rftPlot); + + if (rftPlot) + { + rftPlot->updateConnectedEditors(); + } } //--------------------------------------------------------------------------------------------------