mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4411 Grid Cross Plot : Fix inverted category legend in plot
This commit is contained in:
@@ -979,7 +979,7 @@ void RimGridCrossPlotDataSet::updateLegendRange()
|
||||
const std::vector<QString>& categoryNames = formationNames->formationNames();
|
||||
if (!categoryNames.empty())
|
||||
{
|
||||
legendConfig()->setNamedCategories(categoryNames);
|
||||
legendConfig()->setNamedCategoriesInverse(categoryNames);
|
||||
legendConfig()->setAutomaticRanges(0, categoryNames.size() - 1, 0, categoryNames.size() - 1);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user