#2283 Cross Plot : Use empty curve name instead of single pipe "|"

This commit is contained in:
Magne Sjaastad
2017-12-21 12:55:48 +01:00
parent 99893397ea
commit 75c94cce7e

View File

@@ -376,7 +376,10 @@ QString RimSummaryCurve::createCurveAutoName()
{
QString xCurveName = m_curveNameConfig->curveName(m_xValuesCurveVariable->address(), plot->activePlotTitleHelper());
name += " | " + xCurveName;
if (!name.isEmpty() || !xCurveName.isEmpty())
{
name += " | " + xCurveName;
}
}
return name;