mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-14 01:12:11 -05:00
Decline curve: remove time selection annotation when curve is hidden
This commit is contained in:
1 parent
06b5c9afbf
commit
413da2e714
2 files changed
+5
-1
No files matched your search
@@ -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() );
|
||||
|
||||
Reference in new issue
Block a user