mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#8109 Ensemble Well Log Plot: fix wrong track index
This commit is contained in:
parent
36eda01be8
commit
0332f7bb9a
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user