mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-09 23:53:04 -06:00
#2123 Formation/Well Path: Remove duplicate of "top" in formation names
This commit is contained in:
parent
f9880c6e89
commit
c6b5936b30
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user