#4411 Grid Cross Plot : Fix inverted category legend in plot

This commit is contained in:
Magne Sjaastad
2019-06-06 07:20:17 +02:00
parent 8301827516
commit fdc1f6b645

View File

@@ -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);
}
}