Bug #1423: Fix bug adding root task to graph

FEA: ItEr76S04BugFixing
This commit is contained in:
Manuel Rego Casasnovas 2012-04-27 14:25:53 +02:00
parent 0d52103791
commit a7e0e1b5cc

View file

@ -202,6 +202,7 @@ public class MonteCarloTabCreator {
asLocalDate(order.getDeadline()), resourcesSearcher);
GanttDiagramGraph<TaskElement, DependencyWithVisibility> graph = createFor(
order, adapter);
graph.addTask(order.getAssociatedTaskElement());
graph.addTasks(order.getAllChildrenAssociatedTaskElements());
addDependencies(graph, order);
return criticalPathCalculator.calculateCriticalPath(graph);