#2123 Formation/Well Path: Remove duplicate of "top" in formation names

This commit is contained in:
Rebecca Cox 2017-11-28 10:18:59 +01:00
parent f9880c6e89
commit c6b5936b30

View File

@ -54,9 +54,13 @@ void RiuPlotAnnotationTool::attachFormationNames(QwtPlot* plot, const std::vecto
line->setLineStyle(QwtPlotMarker::HLine);
line->setLinePen(curvePen);
line->setYValue(yPositions[i].first);
QString name = "Top ";
name += names[i];
QString name = names[i];
if (names[i].toLower().indexOf("top") == -1)
{
name += " top";
}
line->setLabel(name);
line->setLabelAlignment(Qt::AlignRight | Qt::AlignBottom);