mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-10 23:46:00 -06:00
Decline curve: remove time selection annotation when curve is hidden
This commit is contained in:
parent
06b5c9afbf
commit
413da2e714
@ -723,6 +723,10 @@ void RimSummaryCurve::onLoadDataAndUpdate( bool updateParentPlot )
|
||||
replotParentPlot();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
updateTimeAnnotations();
|
||||
}
|
||||
|
||||
if ( updateParentPlot ) updateAxisInPlot( axisY() );
|
||||
}
|
||||
|
@ -420,7 +420,7 @@ void RimSummaryDeclineCurve::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