From 21407e0ca2f8f5b8cac6df840245339ecd262aa4 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 12 Apr 2015 10:13:15 -0400 Subject: [PATCH] TW-1595: info command doesn't print urgency details, if urgency is negative - Thanks to Peter Rochen. --- AUTHORS | 1 + ChangeLog | 2 ++ src/commands/CmdInfo.cpp | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/AUTHORS b/AUTHORS index 91b49d5e7..62b40ed88 100644 --- a/AUTHORS +++ b/AUTHORS @@ -115,6 +115,7 @@ The following submitted code, packages or analysis, and deserve special thanks: Ɓukasz Panek V.Krishn Jens Erat + Peter Rochen Thanks to the following, who submitted detailed bug reports and excellent suggestions: diff --git a/ChangeLog b/ChangeLog index 2e12db91a..2e4f1d141 100644 --- a/ChangeLog +++ b/ChangeLog @@ -27,6 +27,8 @@ (thanks to Scott M). - TW-1591 add an option to see non-pending project with command task summary (thanks to Pierre Campet). +- TW-1595 info command doesn't print urgency details, if urgency is negative + (thanks to Peter Rochen). - Setting 'bulk' to zero is interpreted as infinity, which means there is no amount of changes that is considered dangerous (thanks to Tomas Babej). - Disable hooks in bash completion script. Hooks were previously able to diff --git a/src/commands/CmdInfo.cpp b/src/commands/CmdInfo.cpp index 92b0babd6..1eb02c7b1 100644 --- a/src/commands/CmdInfo.cpp +++ b/src/commands/CmdInfo.cpp @@ -393,7 +393,7 @@ int CmdInfo::execute (std::string& output) // Create a second table, containing urgency details, if necessary. ViewText urgencyDetails; - if (task->urgency () > 0.0) + if (task->urgency () != 0.0) { if (context.color ()) {