#6946 StimPlan Model Plot: Fix incorrect colors in facies track.

This commit is contained in:
Kristian Bendiksen 2020-11-09 12:07:20 +01:00
parent 5c99872c7f
commit 303b0ea163

View File

@ -2722,10 +2722,19 @@ void RimWellLogTrack::updateResultPropertyNamesOnPlot()
// Need to map colors to names (since a category can be used several times)
for ( QString nameToPlot : namesToPlot )
{
bool isFound = false;
for ( RimColorLegendItem* legendItem : m_colorShadingLegend()->colorLegendItems() )
{
if ( legendItem->categoryName() == nameToPlot )
{
colors.push_back( cvf::Color3ub( legendItem->color() ) );
isFound = true;
}
}
if ( !isFound )
{
colors.push_back( cvf::Color3ub( RiaColorTables::undefinedCellColor() ) );
}
}