#2915 Return if no target plot is available

This commit is contained in:
Magne Sjaastad
2018-05-14 20:39:25 +02:00
parent b6d3446fe8
commit e5227c15f0

View File

@@ -613,7 +613,7 @@ void RicSummaryCurveCreator::populateCurveCreator(const RimSummaryPlot& sourceSu
//--------------------------------------------------------------------------------------------------
void RicSummaryCurveCreator::updateTargetPlot()
{
if (m_targetPlot == nullptr) m_targetPlot = new RimSummaryPlot();
if (!m_targetPlot) return;
m_targetPlot->deleteAllSummaryCurves();
m_targetPlot->ensembleCurveSetCollection()->deleteAllCurveSets();