From 6a2c047beb5e57e7f6d9ccfc55faf6f168391c54 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Wed, 18 Jul 2012 06:53:58 -0400 Subject: [PATCH] Bug #1032 - Fixed bug #1032, which prevented negative urgency coefficients from working for projects and tags. --- ChangeLog | 2 ++ src/Task.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 18ff00d46..78a912f46 100644 --- a/ChangeLog +++ b/ChangeLog @@ -112,6 +112,8 @@ Bugs (thank to Uli Martens). + Fixed bug #1030, which defines a portable implementation of timegm and removes the use of tm_gmtoff for non GNU/BSD platforms. + + Fixed bug #1032, which prevented negative urgency coefficients from working + for projects and tags. ------ old releases ------------------------------ diff --git a/src/Task.cpp b/src/Task.cpp index 6ff4c9093..9d6c73a97 100644 --- a/src/Task.cpp +++ b/src/Task.cpp @@ -1340,7 +1340,7 @@ float Task::urgency_c () const std::map ::iterator var; for (var = coefficients.begin (); var != coefficients.end (); ++var) { - if (var->second > epsilon) + if (fabs (var->second) > epsilon) { if (var->first.substr (0, 13) == "urgency.user.") {