[Bug #1242] Don't allow progress end dates superior to the corresponding task end date.

This situation still happened in tasks with completition near to 100% (for
example 99%) and the 'by hours' calculation method.

FEA: ItEr75S04BugFixing
This commit is contained in:
Jacobo Aragunde Pérez 2012-01-03 14:21:03 +01:00
parent 519389dc4b
commit bf4e13c358

View file

@ -660,6 +660,13 @@ public class TaskElementAdapter {
GanttDate result = calculateLimitDateByHours(advanceHours);
if (result == null) {
result = calculateLimitDateByPercentage(advancePercentage);
} else {
GanttDate endDate = toGantt(taskElement.getIntraDayEndDate());
if (result.compareTo(endDate) > 0) {
//don't allow progress bars wider than the task itself
result = endDate;
}
}
return result;
}