mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4156 Simplify curve naming code
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user