[Bug #753] Fix bug

The parents recalculations were recalculating the secondary point,
this caused that a posterior recalculation for the secondary point of
the same task would say it has not modified the task. This caused the
depending recalculations to not be executed.

Now when doing the parent recalculation only the primary point is
modified.

FEA: ItEr65S06BugFixing
This commit is contained in:
Óscar González Fernández 2010-12-15 17:11:24 +01:00
parent 3f97bba952
commit 745fad2d7c

View file

@ -1241,7 +1241,10 @@ public class GanttDiagramGraph<V, D extends IDependency<V>> implements
@Override
PositionRestrictions enforceUsingPreviousRestrictions(
PositionRestrictions restrictions) {
if (taskPoint.areAllPointsPotentiallyModified()) {
if (parentRecalculation) {
// avoid interference from task containers shrinking
return enforcePrimaryPoint(restrictions);
} else if (taskPoint.areAllPointsPotentiallyModified()) {
return enforceBoth(restrictions);
} else if (taskPoint.somePointPotentiallyModified()) {
return enforceSecondaryPoint(restrictions);