LCL: fixed TWinControl.SetChildZPosition, WS must be informed about change of order in any case. issue #40450

This commit is contained in:
Željan Rikalo 2023-08-22 19:50:19 +02:00
parent 2a339f8cb1
commit 853461fed6

View File

@ -4225,9 +4225,8 @@ begin
if NewPos >= FControls.Count then
NewPos := FControls.Count - 1;
if NewPos = OldPos then Exit;
FControls.Move(OldPos, NewPos);
if NewPos <> OldPos then
FControls.Move(OldPos, NewPos);
if IsWinControl then
begin