mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 04:08:01 +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)
|
if (lastChildNodePath != null)
|
||||||
updatePredecessors(lastChildNodePath);
|
updatePredecessors(lastChildNodePath);
|
||||||
|
else {
|
||||||
|
// leafNode
|
||||||
|
if (selectStatus)
|
||||||
|
checkedPaths.add(treePath);
|
||||||
|
else
|
||||||
|
checkedPaths.remove(treePath);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setPathCheckStatus(TreePath tp, boolean checkStatus) {
|
private void setPathCheckStatus(TreePath tp, boolean checkStatus) {
|
||||||
|
|||||||
Reference in New Issue
Block a user