VirtualTreeView: Infinite loop in GetPreviousVisibleNoInit(). Issue #38836 (patch from JAM-Software repo, #599)

git-svn-id: trunk@65094 -
This commit is contained in:
wp 2021-05-07 20:22:07 +00:00
parent c8e8ad8dc8
commit 1f43f33ca6

View File

@ -29484,11 +29484,9 @@ begin
if Assigned(Result.PrevSibling) then
begin
// No children anymore, so take the previous sibling.
if vsVisible in Result.PrevSibling.States then
begin
Result := Result.PrevSibling;
if vsVisible in Result.States then
Break;
end;
end
else
begin