mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-07 11:17:21 +01:00
lcl: memo: fix CanShowEmulatedTextHint when destroying focused TMemo
git-svn-id: trunk@53798 -
This commit is contained in:
parent
0330cf85c9
commit
b350995af3
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user