#4156 Simplify curve naming code

This commit is contained in:
Gaute Lindkvist
2019-03-07 14:17:12 +01:00
parent 102d1c75a7
commit d2393cb8a5
8 changed files with 130 additions and 175 deletions

View File

@@ -119,7 +119,7 @@ void RiuGridCrossQwtPlot::updateLegendLayout()
{
RiuCvfOverlayItemWidget* overlayWidget = pairIt->second;
// Show only one copy of each legend type
if (!legendTypes.count(curveSet->groupTitle()))
if (!legendTypes.count(curveSet->groupParameter()))
{
if (ypos + overlayWidget->height() + spacing > this->canvas()->height())
{
@@ -133,7 +133,7 @@ void RiuGridCrossQwtPlot::updateLegendLayout()
ypos += pairIt->second->height() + spacing;
maxColumnWidth = std::max(maxColumnWidth, pairIt->second->width());
legendTypes.insert(curveSet->groupTitle());
legendTypes.insert(curveSet->groupParameter());
}
}
}