mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#6946 StimPlan Model Plot: Fix incorrect colors in facies track.
This commit is contained in:
parent
5c99872c7f
commit
303b0ea163
@ -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() ) );
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user