mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-06 13:00:47 +02:00
fix one occurrence of DebugDisableAutoSizing
git-svn-id: trunk@32151 -
This commit is contained in:
parent
d0d565f788
commit
bb8ada822a
@ -3235,7 +3235,7 @@ var
|
||||
begin
|
||||
if FAlign = Value then exit;
|
||||
//DebugLn(['TControl.SetAlign ',DbgSName(Self),' Old=',AlignNames[FAlign],' New=',AlignNames[Value],' ',Anchors<>AnchorAlign[FAlign]]);
|
||||
DisableAutoSizing;
|
||||
DisableAutoSizing{$IFDEF DebugDisableAutoSizing}('TControl.setalign'){$ENDIF};
|
||||
OldAlign := FAlign;
|
||||
FAlign := Value;
|
||||
for a:=low(TAnchorKind) to High(TAnchorKind) do
|
||||
@ -3250,7 +3250,7 @@ begin
|
||||
Anchors := AnchorAlign[FAlign];
|
||||
if not (csLoading in ComponentState) then
|
||||
BoundsRect:=BaseBounds;
|
||||
EnableAutoSizing;
|
||||
EnableAutoSizing{$IFDEF DebugDisableAutoSizing}('TControl.setalign'){$ENDIF};
|
||||
end;
|
||||
|
||||
{------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user