From 630dbd0ffcfa2e2397435ab8ae80dd8b27265d80 Mon Sep 17 00:00:00 2001 From: Rebecca Cox Date: Tue, 7 Nov 2017 10:02:43 +0100 Subject: [PATCH] Tab -> spaces --- .../ProjectDataModel/RimWellLogTrack.cpp | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/ApplicationCode/ProjectDataModel/RimWellLogTrack.cpp b/ApplicationCode/ProjectDataModel/RimWellLogTrack.cpp index 2e68a4b6df..b0c0c6776a 100644 --- a/ApplicationCode/ProjectDataModel/RimWellLogTrack.cpp +++ b/ApplicationCode/ProjectDataModel/RimWellLogTrack.cpp @@ -245,17 +245,23 @@ void RimWellLogTrack::fieldChangedByUi(const caf::PdmFieldHandle* changedField, { loadDataAndUpdate(); - RimWellRftPlot* rftPlot(nullptr); + RimWellRftPlot* rftPlot(nullptr); + firstAncestorOrThisOfType(rftPlot); if (rftPlot) - { rftPlot->updateConnectedEditors(); } + { + rftPlot->updateConnectedEditors(); + } else { - RimWellPltPlot* pltPlot(nullptr); + RimWellPltPlot* pltPlot(nullptr); + firstAncestorOrThisOfType(pltPlot); if (pltPlot) - { pltPlot->updateConnectedEditors(); } + { + pltPlot->updateConnectedEditors(); + } } } else if (changedField == &m_formationCase) @@ -291,7 +297,8 @@ void RimWellLogTrack::fieldChangedByUi(const caf::PdmFieldHandle* changedField, else if (changedField == &m_formationBranchIndex) { loadDataAndUpdate(); - } } + } +} //-------------------------------------------------------------------------------------------------- ///