#4851 Ensemble RFT : Make sure colors are created correctly

This commit is contained in:
Magne Sjaastad
2019-10-23 09:16:54 +02:00
parent 86c75ca678
commit cb5195bac2

View File

@@ -986,18 +986,6 @@ void RimWellRftPlot::onLoadDataAndUpdate()
updateMdiWindowVisibility();
updateFormationsOnPlot();
// Update of curve color must happen here when loading data from project file, as the curve color is blended by the
// background color. The background color is taken from the viewer.
RimWellLogTrack* const plotTrack = trackByIndex( 0 );
if ( plotTrack && plotTrack->viewer() )
{
for ( auto c : plotTrack->curvesVector() )
{
applyCurveColor( c );
}
}
if ( depthType() == RimWellLogPlot::MEASURED_DEPTH )
{
assignWellPathToExtractionCurves();
@@ -1006,6 +994,20 @@ void RimWellRftPlot::onLoadDataAndUpdate()
RimWellLogPlot::onLoadDataAndUpdate();
updateEditorsFromCurves();
// Update of curve color must happen here when loading data from project file, as the curve color is blended by the
// background color. The background color is taken from the viewer.
RimWellLogTrack* const plotTrack = trackByIndex( 0 );
if ( plotTrack && plotTrack->viewer() )
{
syncCurvesFromUiSelection();
for ( auto c : plotTrack->curvesVector() )
{
applyCurveColor( c );
}
}
}
//--------------------------------------------------------------------------------------------------