mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Regression Analysis: remove time selection annotation when curve is hidden
This commit is contained in:
parent
452969118f
commit
6c99ceb7ea
@ -569,7 +569,7 @@ void RimSummaryRegressionAnalysisCurve::updateTimeAnnotations()
|
||||
auto plot = firstAncestorOrThisOfTypeAsserted<RimSummaryPlot>();
|
||||
if ( m_timeRangeAnnotation ) plot->removeTimeAnnotation( m_timeRangeAnnotation );
|
||||
|
||||
if ( m_showTimeSelectionInPlot )
|
||||
if ( m_showTimeSelectionInPlot && isChecked() )
|
||||
{
|
||||
m_timeRangeAnnotation = plot->addTimeRangeAnnotation( m_minTimeStep, m_maxTimeStep );
|
||||
m_timeRangeAnnotation->setColor( color() );
|
||||
|
Loading…
Reference in New Issue
Block a user