Avoid updating the date if it's the same

FEA: ItEr66S04BugFixing
This commit is contained in:
Óscar González Fernández 2010-12-21 18:46:10 +01:00
parent 6cd735f009
commit 7bcf3efe6c

View file

@ -1561,7 +1561,7 @@ public class GanttDiagramGraph<V, D extends IDependency<V>> implements
.withConstraints(restrictions.getStartConstraints())
.withConstraints(getStartConstraints())
.applyWithoutFinalCheck();
if (result != null) {
if (result != null && !result.equals(getStartDate(task))) {
return enforceRestrictions(result);
}
return restrictions;
@ -1583,7 +1583,7 @@ public class GanttDiagramGraph<V, D extends IDependency<V>> implements
.withConstraints(restrictions.getEndConstraints())
.withConstraints(getEndConstraints())
.applyWithoutFinalCheck();
if (result != null) {
if (result != null && !result.equals(getEndDateFor(task))) {
return enforceRestrictions(result);
}
return restrictions;