From b02ca2f0566d8f08663e71db462cda8db91d3598 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=93scar=20Gonz=C3=A1lez=20Fern=C3=A1ndez?= Date: Wed, 1 Jun 2011 13:47:44 +0200 Subject: [PATCH] [Bug #1082] Fix bug Making that the parent recalculations go after the normal ones. Thus if a normal recalculation is needed for a parent, i.e. a container, it's executed before the parent recalculation. Otherwise the parent recalculation would apply the modifications and the normal recalculation will think that no modifications have been done and its successors would not be executed. FEA: ItEr74S04BugFixing --- .../main/java/org/zkoss/ganttz/data/GanttDiagramGraph.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 58ca5d061..632ef1494 100644 --- a/ganttzk/src/main/java/org/zkoss/ganttz/data/GanttDiagramGraph.java +++ b/ganttzk/src/main/java/org/zkoss/ganttz/data/GanttDiagramGraph.java @@ -469,8 +469,8 @@ public class GanttDiagramGraph> implements + o2.taskPoint); int result = o1Depth - o2Depth; if (result == 0) { - return asInt(o2.parentRecalculation) - - asInt(o1.parentRecalculation); + return asInt(o1.parentRecalculation) + - asInt(o2.parentRecalculation); } return result; }