mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-13 10:59:06 +02:00
LCL: Don't make unnecessary calls to ButtonPanel.UpdateSizes. Issue #25580.
git-svn-id: trunk@63003 -
This commit is contained in:
parent
77a7f48ed7
commit
90f3071c4f
@ -487,8 +487,8 @@ procedure TCustomButtonPanel.Notification(AComponent: TComponent;
|
||||
var
|
||||
btn: TPanelButton;
|
||||
begin
|
||||
if Operation=opRemove
|
||||
then begin
|
||||
if Operation=opRemove then
|
||||
begin
|
||||
for btn := Low(btn) to High(btn) do
|
||||
begin
|
||||
if FButtons[btn] <> AComponent then Continue;
|
||||
@ -497,7 +497,8 @@ begin
|
||||
end;
|
||||
end;
|
||||
inherited Notification(AComponent, Operation);
|
||||
UpdateSizes;
|
||||
if AComponent is TPanelBitBtn then
|
||||
UpdateSizes;
|
||||
end;
|
||||
|
||||
constructor TCustomButtonPanel.Create(AOwner: TComponent);
|
||||
|
Loading…
Reference in New Issue
Block a user