mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
FIXED a bug that did not consider initialised checked leaf nodes
This commit is contained in:
@@ -346,6 +346,13 @@ public class FCheckBoxTree extends JTree {
|
||||
}
|
||||
if (lastChildNodePath != null)
|
||||
updatePredecessors(lastChildNodePath);
|
||||
else {
|
||||
// leafNode
|
||||
if (selectStatus)
|
||||
checkedPaths.add(treePath);
|
||||
else
|
||||
checkedPaths.remove(treePath);
|
||||
}
|
||||
}
|
||||
|
||||
private void setPathCheckStatus(TreePath tp, boolean checkStatus) {
|
||||
|
||||
Reference in New Issue
Block a user