mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-24 23:39:18 +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;
|
prevWindowState: TWindowState;
|
||||||
begin
|
begin
|
||||||
// temporarily go to normal window state to store restored bounds
|
// 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;
|
prevWindowState := WindowState;
|
||||||
WindowState := wsNormal;
|
WindowState := wsNormal;
|
||||||
SetBounds(ALeft, ATop, AWidth, AHeight);
|
SetBounds(ALeft, ATop, AWidth, AHeight);
|
||||||
|
Loading…
Reference in New Issue
Block a user