From ae8d614fb069a5117aed9e347e92b70e4c8e5302 Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Thu, 26 Oct 2017 13:22:52 +0200 Subject: [PATCH] #2045 Curve Creator : Make sure preview plot is updated in defineUiOrdering --- .../Commands/SummaryPlotCommands/RicSummaryCurveCreator.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ApplicationCode/Commands/SummaryPlotCommands/RicSummaryCurveCreator.cpp b/ApplicationCode/Commands/SummaryPlotCommands/RicSummaryCurveCreator.cpp index e2a23b0a49..527a732e91 100644 --- a/ApplicationCode/Commands/SummaryPlotCommands/RicSummaryCurveCreator.cpp +++ b/ApplicationCode/Commands/SummaryPlotCommands/RicSummaryCurveCreator.cpp @@ -251,6 +251,8 @@ void RicSummaryCurveCreator::defineUiOrdering(QString uiConfigName, caf::PdmUiOr uiOrdering.add(&m_closeButtonField); uiOrdering.skipRemainingFields(true); + + syncPreviewCurvesFromUiSelection(); } //-------------------------------------------------------------------------------------------------- @@ -258,6 +260,8 @@ void RicSummaryCurveCreator::defineUiOrdering(QString uiConfigName, caf::PdmUiOr //-------------------------------------------------------------------------------------------------- void RicSummaryCurveCreator::syncPreviewCurvesFromUiSelection() { + if (!m_selectionEditor) return; + std::vector allCurveDefinitionsVector = m_selectionEditor->selectedCurveDefinitions(); std::set allCurveDefinitions = std::set(allCurveDefinitionsVector.begin(), allCurveDefinitionsVector.end());