[Bug #1309] Invalidate each TaskComponent instead of the whole TaskList when progress type is changed

FEA: ItEr75S04BugFixing
This commit is contained in:
Manuel Rego Casasnovas 2011-12-28 18:23:56 +01:00
parent eb486c14c2
commit fec675b657
2 changed files with 4 additions and 2 deletions

View file

@ -877,7 +877,9 @@ public class Planner extends HtmlMacroComponent {
if (taskList != null) {
taskList.updateCompletion(progressType);
// FIXME Bug #1270
taskList.invalidate();
for (TaskComponent each : taskList.getTaskComponents()) {
each.invalidate();
}
}
}

View file

@ -198,7 +198,7 @@ public class TaskList extends XulElement implements AfterCompose {
return getTimeTrackerComponent().getTimeTracker();
}
private List<TaskComponent> getTaskComponents() {
protected List<TaskComponent> getTaskComponents() {
ArrayList<TaskComponent> result = new ArrayList<TaskComponent>();
for (Object child : getChildren()) {
if (child instanceof TaskRow) {