mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2026-01-04 18:50:52 +01:00
LCL: TControl.SetName: skip overhead when name not changed
git-svn-id: trunk@26231 -
This commit is contained in:
parent
88536343f0
commit
a8f9721a8d
@ -2683,6 +2683,7 @@ procedure TControl.SetName(const Value: TComponentName);
|
||||
var
|
||||
ChangeText: Boolean;
|
||||
begin
|
||||
if Name=Value then exit;
|
||||
ChangeText :=
|
||||
(csSetCaption in ControlStyle) and not (csLoading in ComponentState) and
|
||||
(Name = Text) and
|
||||
|
||||
Loading…
Reference in New Issue
Block a user