[Bug #1242] Use IntraDayDate to draw the progress bar in leaf Tasks.
The advance bar was always drawn until the end of the day, even when the task finished in the middle of the day, causing a weird effect. FEA: ItEr75S04BugFixing
This commit is contained in:
parent
a1221c2581
commit
7518270ced
1 changed files with 2 additions and 7 deletions
|
|
@ -745,13 +745,8 @@ public class TaskElementAdapter {
|
|||
EffortDuration decrement = min(entry.getValue(), hoursLeft);
|
||||
hoursLeft = hoursLeft.minus(decrement);
|
||||
if (hoursLeft.isZero()) {
|
||||
if (decrement.equals(entry.getValue())) {
|
||||
result = IntraDayDate.startOfDay(entry.getKey()
|
||||
.plusDays(1));
|
||||
} else {
|
||||
result = IntraDayDate.create(entry.getKey(),
|
||||
decrement);
|
||||
}
|
||||
result = IntraDayDate.create(entry.getKey(),
|
||||
decrement);
|
||||
break;
|
||||
} else {
|
||||
result = IntraDayDate.startOfDay(entry.getKey()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue