lcl: memo: fix CanShowEmulatedTextHint when destroying focused TMemo

git-svn-id: trunk@53798 -
This commit is contained in:
ondrej 2016-12-29 13:40:42 +00:00
parent 0330cf85c9
commit b350995af3

View File

@ -84,7 +84,10 @@ end;
function TCustomMemo.CanShowEmulatedTextHint: Boolean;
begin
Result := (Lines.Count = 0) and inherited CanShowEmulatedTextHint;
Result :=
Assigned(Lines) // CM_EXIT is sent in destroy -> this function is called in destructor when Lines are already destroyed
and (Lines.Count = 0)
and inherited CanShowEmulatedTextHint;
end;
procedure TCustomMemo.CreateParams(var Params: TCreateParams);