mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-16 10:19:36 +02:00
lcl: TCustomForm.SetRestoredBounds: reduce double calls
git-svn-id: trunk@24097 -
This commit is contained in:
parent
c70222fe4e
commit
bf3ee47952
@ -1487,6 +1487,8 @@ var
|
||||
prevWindowState: TWindowState;
|
||||
begin
|
||||
// temporarily go to normal window state to store restored bounds
|
||||
if (FRestoredLeft=ALeft) and (FRestoredTop=ATop)
|
||||
and (FRestoredWidth=AWidth) and (FRestoredHeight=AHeight) then exit;
|
||||
prevWindowState := WindowState;
|
||||
WindowState := wsNormal;
|
||||
SetBounds(ALeft, ATop, AWidth, AHeight);
|
||||
|
Loading…
Reference in New Issue
Block a user