From 4f05b6d92cc91efb150d42c00701999efefd097f Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Tue, 27 Oct 2026 15:29:37 +0100 Subject: [PATCH] #15061: Do not report air gap in plot name variables when zero --- ApplicationLibCode/ProjectDataModel/RimDepthTrackPlot.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ApplicationLibCode/ProjectDataModel/RimDepthTrackPlot.cpp b/ApplicationLibCode/ProjectDataModel/RimDepthTrackPlot.cpp index dbc7db6070..aba64e44a8 100644 --- a/ApplicationLibCode/ProjectDataModel/RimDepthTrackPlot.cpp +++ b/ApplicationLibCode/ProjectDataModel/RimDepthTrackPlot.cpp @@ -680,7 +680,10 @@ std::map RimDepthTrackPlot::createNameKeyValueMap() const { double rkb = wellPathGeometry->rkbDiff(); - variableValueMap[RiaDefines::namingVariableAirGap()] = QString( "Air Gap = %1 m" ).arg( rkb ); + if ( rkb != 0.0 || m_namingMethod() == RiaDefines::ObjectNamingMethod::TEMPLATE ) + { + variableValueMap[RiaDefines::namingVariableAirGap()] = QString( "Air Gap = %1 m" ).arg( rkb ); + } } }