mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Range adjustment for tracks with well path attributes
This commit is contained in:
parent
847c6127b0
commit
a30139c08a
@ -957,10 +957,11 @@ void RimWellLogTrack::applyXZoomFromVisibleRange()
|
||||
}
|
||||
else if (m_wellPathAttributeCollection)
|
||||
{
|
||||
attributeRangeMin = attributeRangeMax;
|
||||
attributeRangeMax = 0.75 * RimWellPathAttribute::MAX_DIAMETER_IN_INCHES;
|
||||
attributeRangeMin = 0.5 * RimWellPathAttribute::MAX_DIAMETER_IN_INCHES;
|
||||
for (const RimWellPathAttribute* attribute : m_wellPathAttributeCollection->attributes())
|
||||
{
|
||||
attributeRangeMin = std::max(attributeRangeMin, attribute->diameterInInches() * 0.5);
|
||||
attributeRangeMin = std::min(attributeRangeMin, attribute->diameterInInches() * 0.5);
|
||||
}
|
||||
}
|
||||
m_wellLogTrackPlotWidget->setXRange(attributeRangeMin, attributeRangeMax, QwtPlot::xBottom);
|
||||
|
Loading…
Reference in New Issue
Block a user