#2360 Elm Props: Correct UI text in 3d overlay info

This commit is contained in:
Rebecca Cox 2018-01-11 10:19:22 +01:00
parent 81a7fb204d
commit cede66c8c0

View File

@ -604,8 +604,14 @@ QString Rim3dOverlayInfoConfig::resultInfoText(const HistogramData& histData, Ri
default:
break;
}
infoText += QString("<b>Cell result:</b> %1, %2, %3").arg(resultPos).arg(fieldName).arg(compName);
if (compName == "")
{
infoText += QString("<b>Cell result:</b> %1, %2").arg(resultPos).arg(fieldName);
}
else
{
infoText += QString("<b>Cell result:</b> %1, %2, %3").arg(resultPos).arg(fieldName).arg(compName);
}
infoText += QString("<br><b>Statistics:</b> ") + m_statisticsTimeRange().uiText() + " and " + m_statisticsCellRange().uiText();
infoText += QString("<table border=0 cellspacing=5 >"