From 0314da0e594237765df8af758408a3b1f75387a1 Mon Sep 17 00:00:00 2001 From: ondrej Date: Mon, 18 Jan 2016 23:23:52 +0000 Subject: [PATCH] LCL: revert r51321 #251af8045a git-svn-id: trunk@51333 - --- lcl/include/customform.inc | 9 --------- 1 file changed, 9 deletions(-) diff --git a/lcl/include/customform.inc b/lcl/include/customform.inc index daf9e3a318..5c78118487 100644 --- a/lcl/include/customform.inc +++ b/lcl/include/customform.inc @@ -696,7 +696,6 @@ end; procedure TCustomForm.WMSize(var message: TLMSize); var NewState: TWindowState; - NeedsAutoSize: Boolean; begin {$IFDEF CHECK_POSITION} DebugLn(['[TCustomForm.WMSize] ',DbgSName(Self),' Message.SizeType=',Message.SizeType,' Message.Width=',Message.Width,' Message.Height=',Message.Height,' AutoSizeDelayed=',AutoSizeDelayed]); @@ -713,11 +712,6 @@ begin end; end; - NeedsAutoSize := - (FWindowState = wsMinimized) - and ((Message.SizeType and SIZE_SourceIsInterface) <> 0) - and ((Message.SizeType xor SIZE_SourceIsInterface) <> SIZE_MINIMIZED); - inherited WMSize(Message); if (Message.SizeType and not SIZE_SourceIsInterface) = SIZE_RESTORED then @@ -726,9 +720,6 @@ begin FRestoredHeight := Height; //DebugLn('[TCustomForm.WMSize] saving restored bounds ',DbgSName(Self),' ',dbgs(FRestoredWidth),'x',dbgs(FRestoredHeight)); end; - - if NeedsAutoSize then - DoAllAutoSize; end; procedure TCustomForm.WMMove(var Message: TLMMove);