From 2c087f0bdacff6fbe3410eadbcacea0a7055bc80 Mon Sep 17 00:00:00 2001 From: Abdelrahman Mahmoud Date: Sun, 5 Jun 2016 23:33:27 -0400 Subject: [PATCH] Fix valence negatove doesn't show up --- common/PlottingImageListener.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/PlottingImageListener.hpp b/common/PlottingImageListener.hpp index 02d2eec..90e9d47 100644 --- a/common/PlottingImageListener.hpp +++ b/common/PlottingImageListener.hpp @@ -229,7 +229,7 @@ public: { for (std::string name : names) { - if ((*first) > 5.0f) + if (std::abs(*first) > 5.0f) { char m[50]; sprintf(m, "%s: %3.2f", name.c_str(), (*first));