mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
(#396) Use 0-1000 as default depth range when there's no data yet
This commit is contained in:
parent
06ab096e72
commit
dfdfdc3efc
@ -54,8 +54,8 @@ RimWellLogPlot::RimWellLogPlot()
|
||||
CAF_PDM_InitFieldNoDefault(&windowGeometry, "WindowGeometry", "", "", "", "");
|
||||
windowGeometry.uiCapability()->setUiHidden(true);
|
||||
|
||||
m_depthRangeMinimum = HUGE_VAL;
|
||||
m_depthRangeMaximum = -HUGE_VAL;
|
||||
m_depthRangeMinimum = 0.00;
|
||||
m_depthRangeMaximum = 1000.0;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@ -209,8 +209,11 @@ void RimWellLogPlot::updateAvailableDepthRange()
|
||||
}
|
||||
}
|
||||
|
||||
m_depthRangeMinimum = minDepth;
|
||||
m_depthRangeMaximum = maxDepth;
|
||||
if (minDepth < HUGE_VAL && maxDepth > -HUGE_VAL)
|
||||
{
|
||||
m_depthRangeMinimum = minDepth;
|
||||
m_depthRangeMaximum = maxDepth;
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user