mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Bug #1032
- Fixed bug #1032, which prevented negative urgency coefficients from working for projects and tags.
This commit is contained in:
parent
9a2ab14a34
commit
6a2c047beb
2 changed files with 3 additions and 1 deletions
|
@ -112,6 +112,8 @@ Bugs
|
||||||
(thank to Uli Martens).
|
(thank to Uli Martens).
|
||||||
+ Fixed bug #1030, which defines a portable implementation of timegm and removes
|
+ Fixed bug #1030, which defines a portable implementation of timegm and removes
|
||||||
the use of tm_gmtoff for non GNU/BSD platforms.
|
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 ------------------------------
|
------ old releases ------------------------------
|
||||||
|
|
||||||
|
|
|
@ -1340,7 +1340,7 @@ float Task::urgency_c () const
|
||||||
std::map <std::string, float>::iterator var;
|
std::map <std::string, float>::iterator var;
|
||||||
for (var = coefficients.begin (); var != coefficients.end (); ++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.")
|
if (var->first.substr (0, 13) == "urgency.user.")
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue