From 745fad2d7ce7cde765fdf5baf113233daa6562b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=93scar=20Gonz=C3=A1lez=20Fern=C3=A1ndez?= Date: Wed, 15 Dec 2010 17:11:24 +0100 Subject: [PATCH] [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 --- .../main/java/org/zkoss/ganttz/data/GanttDiagramGraph.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ganttzk/src/main/java/org/zkoss/ganttz/data/GanttDiagramGraph.java b/ganttzk/src/main/java/org/zkoss/ganttz/data/GanttDiagramGraph.java index 1da1f0116..27282d2a0 100644 --- a/ganttzk/src/main/java/org/zkoss/ganttz/data/GanttDiagramGraph.java +++ b/ganttzk/src/main/java/org/zkoss/ganttz/data/GanttDiagramGraph.java @@ -1241,7 +1241,10 @@ public class GanttDiagramGraph> 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);