Optimize the recursive folding in TreeView

This commit is contained in:
Don HO 2019-12-18 10:37:20 +01:00
parent c8b70dacd7
commit 998ad2aa87
No known key found for this signature in database
GPG Key ID: 6C429F1D8D84F46E

View File

@ -275,7 +275,6 @@ void TreeView::foldRecursively(HTREEITEM hParentItem) const
foldRecursively(hItem);
fold(hItem);
}
fold(hParentItem);
}
void TreeView::foldAll() const
@ -285,6 +284,7 @@ void TreeView::foldAll() const
tvProj = getNextSibling(tvProj))
{
foldRecursively(tvProj);
fold(tvProj);
}
}