lcl: TCustomForm.SetRestoredBounds: reduce double calls

git-svn-id: trunk@24097 -
This commit is contained in:
mattias 2010-03-19 12:26:43 +00:00
parent c70222fe4e
commit bf3ee47952

View File

@ -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);