From 3270625172130c4c67b7d59de5ad44192683b335 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Tue, 2 Apr 2019 22:43:29 +0200 Subject: [PATCH] Fixed broken speed type switch (typo) --- src/data/track.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data/track.cpp b/src/data/track.cpp index e6030514..aa3fa9c5 100644 --- a/src/data/track.cpp +++ b/src/data/track.cpp @@ -217,7 +217,7 @@ Graph Track::speed() const v = 0; stop.append(gs.size()); } else if (_useReportedSpeed && sd.at(j).hasSpeed() - && seg.outliers.contains(j)) + && !seg.outliers.contains(j)) v = sd.at(j).speed(); else if (!std::isnan(seg.speed.at(j)) && !seg.outliers.contains(j)) v = seg.speed.at(j);