From 4ca931336610780e6cecb4212398c729c686576d Mon Sep 17 00:00:00 2001 From: Gaute Lindkvist Date: Fri, 11 May 2018 15:13:43 +0200 Subject: [PATCH] #2756 Remove pseudo length as depth type. * That also means there's only option left for PLT-plots: Measured Depth, so may as well remove the drop down list from the UI. --- ApplicationCode/ProjectDataModel/RimWellLogPlot.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ApplicationCode/ProjectDataModel/RimWellLogPlot.cpp b/ApplicationCode/ProjectDataModel/RimWellLogPlot.cpp index 020ce00d99..d75f5c9b9f 100644 --- a/ApplicationCode/ProjectDataModel/RimWellLogPlot.cpp +++ b/ApplicationCode/ProjectDataModel/RimWellLogPlot.cpp @@ -562,10 +562,9 @@ void RimWellLogPlot::uiOrderingForVisibleDepthRange(caf::PdmUiOrdering& uiOrderi //-------------------------------------------------------------------------------------------------- void RimWellLogPlot::uiOrderingForPlot(caf::PdmUiOrdering& uiOrdering) { - RimWellRftPlot* rftp; - firstAncestorOrThisOfType(rftp); + RimWellRftPlot* rftp = rftPlot(); - if (!rftp) + if (!(rftp || pltPlot())) { uiOrdering.add(&m_depthType); } @@ -883,6 +882,7 @@ void RimWellLogPlot::updateDisabledDepthTypes() else if (isPltPlotChild()) { m_disabledDepthTypes.insert(TRUE_VERTICAL_DEPTH); + m_disabledDepthTypes.insert(PSEUDO_LENGTH); m_disabledDepthTypes.insert(CONNECTION_NUMBER); } else