#2838 Ensemble Curve Name : Show curve name in parameter legend title

This commit is contained in:
Magne Sjaastad 2018-05-02 15:14:17 +02:00
parent cff95a1880
commit 483f19e5ca

View File

@ -595,8 +595,25 @@ void RimEnsembleCurveSet::updateCurveColors()
if(m_colorMode == BY_ENSEMBLE_PARAM)
{
RimSummaryCaseCollection* group = m_yValuesSummaryGroup();
QString parameterName = m_ensembleParameter();
m_legendConfig->setTitle(parameterName);
{
QString legendTitle;
if (m_isUsingAutoName)
{
legendTitle = m_autoGeneratedName();
}
else
{
legendTitle += m_userDefinedName();
}
legendTitle += "\n";
legendTitle += parameterName;
m_legendConfig->setTitle(legendTitle);
}
if (group && !parameterName.isEmpty())
{