From e2bfb65e54a76aac2dafbb13bfcb9352ade615c9 Mon Sep 17 00:00:00 2001
From: "Kilic, Deniz" <d.kilic@fz-juelich.de>
Date: Wed, 17 Feb 2021 15:18:51 +0100
Subject: [PATCH] Take absolute difference between manually set height and
 height from the colormap

---
 src/tracker.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/tracker.cpp b/src/tracker.cpp
index c8b73fe88..e76a09b48 100644
--- a/src/tracker.cpp
+++ b/src/tracker.cpp
@@ -1014,7 +1014,7 @@ bool Tracker::setTrackPersonHeight(const Vec2F& p, int frame, QSet<int> onlyVisi
                 }
                 // if previous value (col_height) is negative, height was determined thru color. If manually set value is the color-map value, we do not change anything
                 // @todo: @ar.graf: check if manually set values have side-effects (maybe do not show in statistics)
-                if (!(col_height + height < 0.01))
+                if (!(std::abs(col_height + height) < 0.01))
                 {
                     (*this)[i].setHeight(height);
                     return true;
-- 
GitLab