(#396) Use 0-1000 as default depth range when there's no data yet

This commit is contained in:
Pål Hagen 2015-09-04 11:53:23 +02:00
parent 06ab096e72
commit dfdfdc3efc

View File

@ -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;
}
}
//--------------------------------------------------------------------------------------------------