mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#5048 Fix zoom all for well allocation plots
This commit is contained in:
@@ -104,18 +104,7 @@ bool RimWellLogCurve::yValueRangeInData( double* minimumValue, double* maximumVa
|
|||||||
RimWellLogPlot* wellLogPlot = nullptr;
|
RimWellLogPlot* wellLogPlot = nullptr;
|
||||||
firstAncestorOrThisOfTypeAsserted( wellLogPlot );
|
firstAncestorOrThisOfTypeAsserted( wellLogPlot );
|
||||||
|
|
||||||
if ( wellLogPlot->depthType() == RimWellLogPlot::MEASURED_DEPTH )
|
if ( wellLogPlot->depthType() == RimWellLogPlot::TRUE_VERTICAL_DEPTH )
|
||||||
{
|
|
||||||
if ( m_curveDataMDRange.first == -std::numeric_limits<double>::infinity() ||
|
|
||||||
m_curveDataMDRange.second == std::numeric_limits<double>::infinity() )
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
*minimumValue = m_curveDataMDRange.first;
|
|
||||||
*maximumValue = m_curveDataMDRange.second;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
if ( m_curveDataTVDRange.first == -std::numeric_limits<double>::infinity() ||
|
if ( m_curveDataTVDRange.first == -std::numeric_limits<double>::infinity() ||
|
||||||
m_curveDataTVDRange.second == std::numeric_limits<double>::infinity() )
|
m_curveDataTVDRange.second == std::numeric_limits<double>::infinity() )
|
||||||
@@ -126,6 +115,17 @@ bool RimWellLogCurve::yValueRangeInData( double* minimumValue, double* maximumVa
|
|||||||
*minimumValue = m_curveDataTVDRange.first;
|
*minimumValue = m_curveDataTVDRange.first;
|
||||||
*maximumValue = m_curveDataTVDRange.second;
|
*maximumValue = m_curveDataTVDRange.second;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if ( m_curveDataMDRange.first == -std::numeric_limits<double>::infinity() ||
|
||||||
|
m_curveDataMDRange.second == std::numeric_limits<double>::infinity() )
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
*minimumValue = m_curveDataMDRange.first;
|
||||||
|
*maximumValue = m_curveDataMDRange.second;
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user