#5281 Summary Plot: Ensemble curve highlight is missing in 2019.12

This commit is contained in:
Magne Sjaastad
2020-01-03 12:50:53 +01:00
parent 576dfa80ac
commit 10649fa444
3 changed files with 23 additions and 18 deletions

View File

@@ -418,13 +418,11 @@ caf::PdmObject* RimSummaryPlot::findPdmObjectFromQwtCurve( const QwtPlotCurve* q
if ( m_ensembleCurveSetCollection )
{
RimEnsembleCurveSet* foundCurveSet = m_ensembleCurveSetCollection->findRimCurveSetFromQwtCurve( qwtCurve );
RimSummaryCurve* foundCurve = m_ensembleCurveSetCollection->findRimCurveFromQwtCurve( qwtCurve );
if ( foundCurveSet )
if ( foundCurve )
{
m_ensembleCurveSetCollection->setCurrentSummaryCurveSet( foundCurveSet );
return foundCurveSet;
return foundCurve;
}
}
return nullptr;