ItEr60S04ValidacionEProbasFuncionaisItEr59S04: [Bug #542] Fix bug.

The parent recalculation was updating the end date. This caused that
later thought that the end date was not modified and the grandparent
tasks was not recalculated.
This commit is contained in:
Óscar González Fernández 2010-07-08 20:30:10 +02:00
parent b84733139a
commit 1458162d26

View file

@ -1026,8 +1026,8 @@ public class GanttDiagramGraph<V, D> {
Set<D> incoming = graph.incomingEdgesOf(task);
Date previousEndDate = adapter.getEndDateFor(task);
boolean startDateChanged = enforceStartDate(task, incoming);
boolean endDateChanged = enforceEndDate(task, previousEndDate,
incoming);
boolean endDateChanged = !parentRecalculation
&& enforceEndDate(task, previousEndDate, incoming);
return startDateChanged || endDateChanged;
}