diff --git a/ApplicationCode/Commands/SummaryPlotCommands/RicSummaryCurveCreatorSplitterUi.cpp b/ApplicationCode/Commands/SummaryPlotCommands/RicSummaryCurveCreatorSplitterUi.cpp index 8c7168092b..1bb30e7617 100644 --- a/ApplicationCode/Commands/SummaryPlotCommands/RicSummaryCurveCreatorSplitterUi.cpp +++ b/ApplicationCode/Commands/SummaryPlotCommands/RicSummaryCurveCreatorSplitterUi.cpp @@ -146,7 +146,11 @@ QWidget* RicSummaryCurveCreatorSplitterUi::createWidget( QWidget* parent ) m_firstColumnSplitter->insertWidget( 0, firstRowFrame ); m_firstColumnSplitter->insertWidget( 1, secondRowFrame ); - m_firstColumnSplitter->setSizes( QList() << 1 << 2 ); + + const int firstRowPixelHeight = 500; + const int secondRowPixelHeight = 300; + + m_firstColumnSplitter->setSizes( QList() << firstRowPixelHeight << secondRowPixelHeight ); m_layout->addWidget( m_firstColumnSplitter ); diff --git a/ApplicationCode/UserInterface/RiuSummaryCurveDefSelection.cpp b/ApplicationCode/UserInterface/RiuSummaryCurveDefSelection.cpp index f31c96bac1..f76ae86b0b 100644 --- a/ApplicationCode/UserInterface/RiuSummaryCurveDefSelection.cpp +++ b/ApplicationCode/UserInterface/RiuSummaryCurveDefSelection.cpp @@ -579,7 +579,7 @@ void RiuSummaryCurveDefSelection::setDefaultSelection( const std::vector 0 ) { - RifEclipseSummaryAddress defaultAddress = RifEclipseSummaryAddress::fieldAddress( "FOPT" ); + RifEclipseSummaryAddress defaultAddress; std::vector selectTheseSources = defaultSources; if ( selectTheseSources.empty() ) selectTheseSources.push_back( allSumCases[0] ); @@ -612,11 +612,6 @@ void RiuSummaryCurveDefSelection::setSelectedCurveDefinitions( const std::vector RimSummaryCase* summaryCase = curveDef.summaryCase(); RifEclipseSummaryAddress summaryAddress = curveDef.summaryAddress(); - if ( summaryAddress.category() == RifEclipseSummaryAddress::SUMMARY_INVALID ) - { - // If we have an invalid address, set the default address to Field - summaryAddress = RifEclipseSummaryAddress::fieldAddress( summaryAddress.quantityName() ); - } // Ignore ensemble statistics curves if ( summaryAddress.category() == RifEclipseSummaryAddress::SUMMARY_ENSEMBLE_STATISTICS ) continue; @@ -627,7 +622,15 @@ void RiuSummaryCurveDefSelection::setSelectedCurveDefinitions( const std::vector if ( std::find( selectedCategories.begin(), selectedCategories.end(), summaryAddress.category() ) == selectedCategories.end() ) { - m_selectedSummaryCategories.v().push_back( summaryAddress.category() ); + if ( summaryAddress.category() != RifEclipseSummaryAddress::SUMMARY_INVALID ) + { + m_selectedSummaryCategories.v().push_back( summaryAddress.category() ); + } + else + { + // Use field category as fall back category to avoid an empty list of vectors + summaryAddress = RifEclipseSummaryAddress::fieldAddress( "" ); + } } // Select case if not already selected