Skip to content

Commit

Permalink
Fix inherited urgency when parent and child have the same urgency (#2941
Browse files Browse the repository at this point in the history
)

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.
  • Loading branch information
RonMcKay committed May 6, 2024
1 parent 651ea36 commit 9d9dde1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Task.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9d9dde1

Please sign in to comment.