#2039 Update editor on toggling "Show formation"

This commit is contained in:
Rebecca Cox
2017-11-07 09:59:58 +01:00
parent 4120aecdc2
commit a4d658423d

View File

@@ -46,6 +46,8 @@
#include "RimWellLogCurve.h" #include "RimWellLogCurve.h"
#include "RimWellLogPlotCollection.h" #include "RimWellLogPlotCollection.h"
#include "RimWellPath.h" #include "RimWellPath.h"
#include "RimWellPltPlot.h"
#include "RimWellRftPlot.h"
#include "RiuMainWindow.h" #include "RiuMainWindow.h"
#include "RiuPlotAnnotationTool.h" #include "RiuPlotAnnotationTool.h"
@@ -242,6 +244,19 @@ void RimWellLogTrack::fieldChangedByUi(const caf::PdmFieldHandle* changedField,
else if (changedField == &m_showFormations) else if (changedField == &m_showFormations)
{ {
loadDataAndUpdate(); loadDataAndUpdate();
RimWellRftPlot* rftPlot(nullptr);
firstAncestorOrThisOfType(rftPlot);
if (rftPlot)
{
rftPlot->updateConnectedEditors();
}
else
{
RimWellPltPlot* pltPlot(nullptr);
firstAncestorOrThisOfType(pltPlot); firstAncestorOrThisOfType(pltPlot);
if (pltPlot) if (pltPlot)
{ {
@@ -276,8 +291,7 @@ void RimWellLogTrack::fieldChangedByUi(const caf::PdmFieldHandle* changedField,
else if (changedField == &m_formationTrajectoryType) else if (changedField == &m_formationTrajectoryType)
{ {
clearGeneratedSimWellPaths(&m_generatedSimulationWellPathBranches); clearGeneratedSimWellPaths(&m_generatedSimulationWellPathBranches);
}
}
loadDataAndUpdate(); loadDataAndUpdate();
} }
else if (changedField == &m_formationBranchIndex) else if (changedField == &m_formationBranchIndex)