mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-05-14 13:12:45 +02:00
LCL: newautosize: fixed TControl.EndAutoSizing
git-svn-id: trunk@23888 -
This commit is contained in:
parent
f794fcdbe9
commit
bc3ac28658
@ -4838,19 +4838,13 @@ begin
|
||||
end;
|
||||
|
||||
procedure TControl.EndAutoSizing;
|
||||
{$IFNDEF NewAutoSize}
|
||||
procedure Error;
|
||||
begin
|
||||
RaiseGDBException('TControl.EndAutoSizing');
|
||||
end;
|
||||
{$ENDIF}
|
||||
begin
|
||||
{$IFDEF NewAutoSize}
|
||||
EnableAutoSizing;
|
||||
{$ELSE}
|
||||
if not FAutoSizingSelf then Error;
|
||||
FAutoSizingSelf := False;
|
||||
{$ENDIF}
|
||||
end;
|
||||
|
||||
{------------------------------------------------------------------------------
|
||||
|
@ -6999,6 +6999,7 @@ begin
|
||||
// first create the parent handle
|
||||
Parent.HandleNeeded;
|
||||
if HandleAllocated then exit;
|
||||
DebugLn(['WARNING: TWinControl.CreateWnd: parent created handles, but not ours']);
|
||||
end;
|
||||
{$ENDIF}
|
||||
// Control is not visible at this moment. It will be shown in UpdateShowing
|
||||
|
Loading…
Reference in New Issue
Block a user