Merged revision(s) 51115 #86ee218ac2 from trunk:

lcl: TCustomForm: prevent sending Resizing twice. Issue #29310 and #29308
........

git-svn-id: branches/fixes_1_6@51152 -
This commit is contained in:
maxim 2016-01-03 12:42:35 +00:00
parent 23f6da9120
commit 5fb41b86ea

View File

@ -712,23 +712,6 @@ begin
end;
end;
//DebugLn('Trace:WMSIZE in TCustomForm');
if (Message.SizeType and SIZE_SourceIsInterface) <> 0 then
begin
NewState := FWindowState;
case (Message.SizeType xor SIZE_SourceIsInterface) of
SIZE_RESTORED:
NewState := wsNormal;
SIZE_MINIMIZED:
NewState := wsMinimized;
SIZE_MAXIMIZED:
NewState := wsMaximized;
SIZE_FULLSCREEN:
NewState := wsFullScreen;
end;
Resizing(NewState);
end;
inherited WMSize(Message);
if (Message.SizeType and not SIZE_SourceIsInterface) = SIZE_RESTORED then