mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4851 Ensemble RFT : Make sure colors are created correctly
Lindkvist: Fixed commit to work with new Grid Plot code
This commit is contained in:
parent
e2da391371
commit
f68eb93ac6
@ -1015,18 +1015,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 = dynamic_cast<RimWellLogTrack*>( plotByIndex( 0 ) );
|
||||
|
||||
if ( plotTrack && plotTrack->viewer() )
|
||||
{
|
||||
for ( auto c : plotTrack->curves() )
|
||||
{
|
||||
applyCurveColor( c );
|
||||
}
|
||||
}
|
||||
|
||||
if ( depthType() == RimWellLogPlot::MEASURED_DEPTH )
|
||||
{
|
||||
assignWellPathToExtractionCurves();
|
||||
@ -1035,6 +1023,19 @@ 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 = dynamic_cast<RimWellLogTrack*>( plotByIndex( 0 ) );
|
||||
|
||||
if ( plotTrack && plotTrack->viewer() )
|
||||
{
|
||||
syncCurvesFromUiSelection();
|
||||
for ( auto c : plotTrack->curves() )
|
||||
{
|
||||
applyCurveColor( c );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user