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(); + } } //--------------------------------------------------------------------------------------------------