#8109 Ensemble Well Log Plot: fix wrong track index

This commit is contained in:
Kristian Bendiksen 2021-10-08 09:11:20 +02:00
parent 36eda01be8
commit 0332f7bb9a

View File

@ -251,11 +251,12 @@ void RicCreateEnsembleWellLogFeature::executeCommand( const RicCreateEnsembleWel
RimcWellLogPlotCollection_newWellLogPlot::createWellLogPlot( plotCollection, wellPath, eclipseCase );
// Create a track per property
int trackNum = 0;
for ( const auto& property : properties )
{
// Create well log track
cvf::Color3f color = RiaColorTables::normalPaletteColors().cycledColor3f( wellLogPlot->plotCount() );
QString title = QString( "Track %1" ).arg( wellLogPlot->plotCount() );
cvf::Color3f color = RiaColorTables::normalPaletteColors().cycledColor3f( trackNum );
QString title = QString( "Track %1" ).arg( trackNum );
RimWellLogTrack* wellLogTrack =
RimcWellLogPlot_newWellLogTrack::createWellLogTrack( wellLogPlot, eclipseCase, wellPath, title );
auto* ensembleWellLogCurveSet = new RimEnsembleWellLogCurveSet();
@ -264,6 +265,7 @@ void RicCreateEnsembleWellLogFeature::executeCommand( const RicCreateEnsembleWel
ensembleWellLogCurveSet->setWellLogChannelName( property.first );
wellLogTrack->setEnsembleWellLogCurveSet( ensembleWellLogCurveSet );
ensembleWellLogCurveSet->loadDataAndUpdate( true );
trackNum++;
}
wellLogPlot->updateConnectedEditors();