Fixed a subtasks indentation bug in certain edge cases:

pull/14/head
Sam Bosley 13 years ago
parent 20cd0cd113
commit 01e28fb529

@ -135,7 +135,7 @@ public class SubtasksUpdater extends OrderedListUpdater<String> {
int indent = metadata.getValue(SubtasksMetadata.INDENT); int indent = metadata.getValue(SubtasksMetadata.INDENT);
if(indent < 0 || indent > previousIndent.get() + 1) // bad if(indent < 0 || indent > previousIndent.get() + 1) // bad
indent = Math.max(0, previousIndent.get()); indent = Math.max(0, previousIndent.get() + 1);
metadata.setValue(SubtasksMetadata.ORDER, order); metadata.setValue(SubtasksMetadata.ORDER, order);
metadata.setValue(SubtasksMetadata.INDENT, indent); metadata.setValue(SubtasksMetadata.INDENT, indent);

Loading…
Cancel
Save