#2038 RFT Plot: Remove last annotation line in plot

This commit is contained in:
Rebecca Cox 2017-10-27 13:57:35 +02:00
parent d8bc1a7be1
commit 11a7cd4b69

View File

@ -55,7 +55,7 @@ void RiuPlotAnnotationTool::attachFormationNames(const std::vector<QString>& nam
m_markers.push_back(std::move(line));
if ((i == names.size() - 1) || cvf::Math::abs(yPositions[i].second - yPositions[i+1].first) > delta)
if ((i != names.size() - 1) && cvf::Math::abs(yPositions[i].second - yPositions[i+1].first) > delta)
{
std::unique_ptr<QwtPlotMarker> line(new QwtPlotMarker());