- Fixed bug #1032, which prevented negative urgency coefficients from working
  for projects and tags.
This commit is contained in:
Paul Beckingham 2012-07-18 06:53:58 -04:00
parent 9a2ab14a34
commit 6a2c047beb
2 changed files with 3 additions and 1 deletions

View file

@ -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 ------------------------------

View file

@ -1340,7 +1340,7 @@ float Task::urgency_c () const
std::map <std::string, float>::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.")
{