LCL: TControl.SetName: skip overhead when name not changed

git-svn-id: trunk@26231 -
This commit is contained in:
mattias 2010-06-21 11:38:02 +00:00
parent 88536343f0
commit a8f9721a8d

View File

@ -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