From f3dfba7a81fcea9bb0c765b3c7c9b0b7ed287b41 Mon Sep 17 00:00:00 2001 From: Gaute Lindkvist Date: Fri, 27 Sep 2019 11:02:03 +0200 Subject: [PATCH] Fixup after review --- ApplicationCode/ProjectDataModel/Flow/RimWellRftPlot.cpp | 2 ++ ApplicationCode/UserInterface/RiuWellLogPlot.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ApplicationCode/ProjectDataModel/Flow/RimWellRftPlot.cpp b/ApplicationCode/ProjectDataModel/Flow/RimWellRftPlot.cpp index 095aea28a0..18212697d1 100644 --- a/ApplicationCode/ProjectDataModel/Flow/RimWellRftPlot.cpp +++ b/ApplicationCode/ProjectDataModel/Flow/RimWellRftPlot.cpp @@ -316,6 +316,8 @@ void RimWellRftPlot::updateEditorsFromPreviousSelection() } } + // This has to happen after the m_selectedSources is filled + // because the available time steps is dependent on the selected sources. auto timeStepOptions = calculateValueOptions( &m_selectedTimeSteps, &dummy ); for ( auto timeStepOption : timeStepOptions ) { diff --git a/ApplicationCode/UserInterface/RiuWellLogPlot.cpp b/ApplicationCode/UserInterface/RiuWellLogPlot.cpp index 17c0dc947f..34e6f6353d 100644 --- a/ApplicationCode/UserInterface/RiuWellLogPlot.cpp +++ b/ApplicationCode/UserInterface/RiuWellLogPlot.cpp @@ -424,7 +424,7 @@ void RiuWellLogPlot::reinsertTracks() { m_trackLayout->addWidget( m_legends[tIdx], 0, static_cast( visibleIndex ) ); m_trackLayout->addWidget( m_trackPlots[tIdx], 1, static_cast( visibleIndex ) ); - m_trackLayout->setRowStretch( 1, 10 ); + m_trackLayout->setRowStretch( 1, 1 ); if ( !m_plotDefinition->areTrackLegendsVisible() ) {