#6252 Category Colors : Name and corresponding color do not match

Set category data directly to the category mapper with no reverse ordering
When drawing the color legend, always draw categories with lower index first
This commit is contained in:
Magne Sjaastad
2020-08-14 08:52:59 +02:00
parent e61b97f836
commit d276d0eefe
7 changed files with 30 additions and 51 deletions

View File

@@ -1363,7 +1363,7 @@ void RimEclipseView::onUpdateLegends()
else
{
const std::vector<QString> fnVector = eclipseCase->formationNames();
cellEdgeResult()->legendConfig()->setNamedCategoriesInverse( fnVector );
cellEdgeResult()->legendConfig()->setNamedCategories( fnVector );
}
}
}