From c6b5936b30af4b7410fdeeffc75bbc7b93bf2ea7 Mon Sep 17 00:00:00 2001 From: Rebecca Cox Date: Tue, 28 Nov 2017 10:18:59 +0100 Subject: [PATCH] #2123 Formation/Well Path: Remove duplicate of "top" in formation names --- ApplicationCode/UserInterface/RiuPlotAnnotationTool.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ApplicationCode/UserInterface/RiuPlotAnnotationTool.cpp b/ApplicationCode/UserInterface/RiuPlotAnnotationTool.cpp index 97b26c8d03..242880cc65 100644 --- a/ApplicationCode/UserInterface/RiuPlotAnnotationTool.cpp +++ b/ApplicationCode/UserInterface/RiuPlotAnnotationTool.cpp @@ -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);