mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1178 Use well colors for Max Fraction Tracer
This commit is contained in:
@@ -281,7 +281,16 @@ void RimEclipseCellColors::updateLegendData(size_t currentTimeStep)
|
||||
|
||||
if (this->hasCategoryResult())
|
||||
{
|
||||
this->legendConfig()->setNamedCategories(this->flowDiagSolution()->tracerNames());
|
||||
std::vector<cvf::Color3ub> categoryColors;
|
||||
|
||||
std::vector<QString> tracerNames = this->flowDiagSolution()->tracerNames();
|
||||
for (const auto& tracerName : tracerNames)
|
||||
{
|
||||
categoryColors.push_back(cvf::Color3ub(this->flowDiagSolution()->tracerColor(tracerName)));
|
||||
}
|
||||
|
||||
this->legendConfig()->setNamedCategories(tracerNames);
|
||||
this->legendConfig()->setCategoryColors(categoryColors);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user