From 40b22585890a9ae7ce6f50a7d05092a2d4e94826 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Fri, 8 Apr 2011 00:39:08 -0400 Subject: [PATCH] Bug 707 - urgency.blocked.coefficient logic was inverted. --- ChangeLog | 2 ++ src/Task.cpp | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 10adc476c..b6d6fc002 100644 --- a/ChangeLog +++ b/ChangeLog @@ -25,6 +25,8 @@ # Tracked Bugs, sorted by ID. + Fixed bug #703, where global substitutions didn't make all expected annotation changes. + + Fixed bug #707, which had inverted logic with the urgency calculation for + blocked tasks. + Fixed Bug #713, which fixes typos in the holidays-UK.rc file (thanks to Alexei Romanoff). + Fixed Bug #723, which displayed a misleading message when the output was diff --git a/src/Task.cpp b/src/Task.cpp index 9e34679ff..99c85fdcc 100644 --- a/src/Task.cpp +++ b/src/Task.cpp @@ -928,8 +928,8 @@ double Task::urgency () coefficient = context.config.getReal ("urgency.blocked.coefficient"); value = get ("depends"); - if (value != "") term = 0.0; - else term = 1.0; + if (value != "") term = 1.0; + else term = 0.0; urgency += term * coefficient;