#7158 WBS plot : Update plot name when water depth changes

This commit is contained in:
Magne Sjaastad
2021-01-21 11:51:16 +01:00
parent 0d3ea8ede1
commit e4b285c169

View File

@@ -73,11 +73,20 @@ RimWellBoreStabilityPlot::RimWellBoreStabilityPlot()
//--------------------------------------------------------------------------------------------------
void RimWellBoreStabilityPlot::applyWbsParametersToExtractor( RigGeoMechWellLogExtractor* extractor )
{
m_waterDepth = extractor->waterDepth();
auto originalValue = m_waterDepth;
m_waterDepth = extractor->waterDepth();
if ( m_waterDepth == std::numeric_limits<double>::infinity() ) m_waterDepth = extractor->estimateWaterDepth();
if ( m_waterDepth == std::numeric_limits<double>::infinity() )
{
m_waterDepth = extractor->estimateWaterDepth();
}
m_wbsParameters->applyWbsParametersToExtractor( extractor );
if ( originalValue != m_waterDepth )
{
performAutoNameUpdate();
}
}
//--------------------------------------------------------------------------------------------------