#5585 Improve the way we decide on autozoom for the X-range in Well Log Tracks

This commit is contained in:
Gaute Lindkvist
2020-04-15 09:29:04 +02:00
parent 6dd4dabc33
commit 1d0cd26aff
2 changed files with 30 additions and 25 deletions

View File

@@ -148,8 +148,8 @@ void RimWellLogCurve::setValuesWithMdAndTVD( const std::vector<double>& xValues,
bool isExtractionCurve,
const QString& xUnits )
{
std::map<RiaDefines::DepthTypeEnum, std::vector<double>> depths = {{RiaDefines::MEASURED_DEPTH, measuredDepths},
{RiaDefines::TRUE_VERTICAL_DEPTH, tvdMSL}};
std::map<RiaDefines::DepthTypeEnum, std::vector<double>> depths = { { RiaDefines::MEASURED_DEPTH, measuredDepths },
{ RiaDefines::TRUE_VERTICAL_DEPTH, tvdMSL } };
setValuesAndDepths( xValues, depths, rkbDiff, depthUnit, isExtractionCurve, xUnits );
}
@@ -263,7 +263,7 @@ void RimWellLogCurve::fieldChangedByUi( const caf::PdmFieldHandle* changedField,
const QVariant& newValue )
{
RimPlotCurve::fieldChangedByUi( changedField, oldValue, newValue );
if ( changedField == &m_showCurve )
if ( changedField == &m_showCurve && m_showCurve() )
{
updateZoomInParentPlot();
}