diff --git a/ApplicationLibCode/ProjectDataModel/WellLog/RimEnsembleWellLogCurveSet.cpp b/ApplicationLibCode/ProjectDataModel/WellLog/RimEnsembleWellLogCurveSet.cpp index 8bed00ec93..da080f5d5b 100644 --- a/ApplicationLibCode/ProjectDataModel/WellLog/RimEnsembleWellLogCurveSet.cpp +++ b/ApplicationLibCode/ProjectDataModel/WellLog/RimEnsembleWellLogCurveSet.cpp @@ -819,12 +819,26 @@ void RimEnsembleWellLogCurveSet::updateEnsembleCurves( const std::vectorupdateLegend(); } +//-------------------------------------------------------------------------------------------------- +/// +//-------------------------------------------------------------------------------------------------- +void RimEnsembleWellLogCurveSet::setLogScaleFromSelectedResult( const QString resVar ) +{ + if ( resVar.toUpper().contains( "PERM" ) ) + { + RimWellLogTrack* track = nullptr; + this->firstAncestorOrThisOfType( track ); + if ( track ) track->setLogarithmicScale( true ); + } +} + //-------------------------------------------------------------------------------------------------- /// //-------------------------------------------------------------------------------------------------- diff --git a/ApplicationLibCode/ProjectDataModel/WellLog/RimEnsembleWellLogCurveSet.h b/ApplicationLibCode/ProjectDataModel/WellLog/RimEnsembleWellLogCurveSet.h index beb5642f7d..6b2f6c30c8 100644 --- a/ApplicationLibCode/ProjectDataModel/WellLog/RimEnsembleWellLogCurveSet.h +++ b/ApplicationLibCode/ProjectDataModel/WellLog/RimEnsembleWellLogCurveSet.h @@ -152,6 +152,7 @@ private: void connectEnsembleCurveSetFilterSignals(); void onFilterSourceChanged( const caf::SignalEmitter* emitter ); void onEnsembleCurvesAppearanceChanged( const caf::SignalEmitter* emitter ); + void setLogScaleFromSelectedResult( const QString resVar ); private: caf::PdmField m_showCurves;