From 9d9dde1065d68bce36575a571d4cc14b58f451d9 Mon Sep 17 00:00:00 2001 From: Philipp Oberdiek Date: Mon, 6 May 2024 02:02:12 +0200 Subject: [PATCH] Fix inherited urgency when parent and child have the same urgency (#2941) Update condition for inheritance value hack If the parent and child task have the same urgency the parent task also needs the 0.01 extra urgency to be sorted above the child. --- src/Task.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Task.cpp b/src/Task.cpp index 2ba0b6d18..0d0d080b4 100644 --- a/src/Task.cpp +++ b/src/Task.cpp @@ -2180,7 +2180,7 @@ float Task::urgency_c () const // This is a hackish way of making sure parent tasks are sorted above // child tasks. For reports that hide blocked tasks, this is not needed. - if (prev < value) + if (prev <= value) value += 0.01; } #endif