mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-16 23:49:28 +02:00
LCL: fixed TWinControl.SetChildZPosition, WS must be informed about change of order in any case. issue #40450
This commit is contained in:
parent
2a339f8cb1
commit
853461fed6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user