Skip to content

Commit 939f0a3

Browse files
committed
If the node already has children, then its nodeheight is valid and we must not remove its total height, but rather its height. (Issue #603)
1 parent c3f5809 commit 939f0a3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Source/VirtualTrees.pas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14779,7 +14779,7 @@ procedure TBaseVirtualTree.SetFiltered(Node: PVirtualNode; Value: Boolean);
1477914779
Include(Node.States, vsFiltered);
1478014780
if not (toShowFilteredNodes in FOptions.FPaintOptions) then
1478114781
begin
14782-
if vsInitializing in Node.States then
14782+
if (vsInitializing in Node.States) and not (vsHasChildren in Node.States) then
1478314783
AdjustTotalHeight(Node, 0, False)
1478414784
else
1478514785
AdjustTotalHeight(Node, -Integer(NodeHeight[Node]), True);

0 commit comments

Comments
 (0)