Merged revision(s) 53292 #f95821fe94 from trunk:

lcl: Do not check for Text property directly in TextChanged. Part of issue . Patch by Michl
........

git-svn-id: branches/fixes_1_6@53352 -
This commit is contained in:
maxim 2016-11-11 22:38:44 +00:00
parent dd6cd0a3b0
commit ff35800fc0

View File

@ -403,8 +403,8 @@ end;
function TCustomEdit.CanShowTextHint: Boolean;
begin
Result := (([csDesigning,csLoading] * ComponentState) = []) and
(Text = '') and
(FTextHint <> '') and
(Text = '') and
(not Focused);
end;
@ -586,7 +586,7 @@ begin
Change;
end;
end;
if (Text = '') and (not FTextHintShowing) then ShowTextHint;
if CanShowTextHint and (not FTextHintShowing) then ShowTextHint;
end;
procedure TCustomEdit.Change;