mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2038 RFT Plot: Remove last annotation line in plot
This commit is contained in:
parent
d8bc1a7be1
commit
11a7cd4b69
@ -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());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user