#2262 Curve Creator : Add support for creation of new auto titled plots

This commit is contained in:
Magne Sjaastad
2017-12-14 10:13:53 +01:00
parent 53d1c7ef66
commit a37771e933
@@ -670,6 +670,13 @@ void RicSummaryCurveCreator::createNewPlot()
RimSummaryPlotCollection* summaryPlotColl = proj->mainPlotCollection()->summaryPlotCollection();
if (summaryPlotColl)
{
RimSummaryPlot* newSummaryPlot = nullptr;
if (m_useAutoPlotTitleProxy())
{
newSummaryPlot = summaryPlotColl->createSummaryPlotWithAutoTitle();
}
else
{
QString candidatePlotName;
if (m_previewPlot)
@@ -677,7 +684,6 @@ void RicSummaryCurveCreator::createNewPlot()
candidatePlotName = m_previewPlot->generatedPlotTitleFromVisibleCurves();
}
RimSummaryPlot* newSummaryPlot = nullptr;
{
bool ok = false;
@@ -694,6 +700,7 @@ void RicSummaryCurveCreator::createNewPlot()
newSummaryPlot = summaryPlotColl->createNamedSummaryPlot(candidatePlotName);
}
}
if (newSummaryPlot)
{