mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-06 20:26:13 +02:00
added nil check for Deactivate
git-svn-id: trunk@5452 -
This commit is contained in:
parent
a429c83148
commit
106d63ecce
@ -338,7 +338,9 @@ procedure TSynBaseCompletionForm.Deactivate;
|
||||
begin
|
||||
Visible := False;
|
||||
{$IFDEF SYN_LAZARUS}
|
||||
SetCaretRespondToFocus(TCustomSynEdit(FCurrentEditor).Handle,true);
|
||||
if (FCurrentEditor<>nil) and (TCustomSynEdit(fCurrentEditor).HandleAllocated)
|
||||
then
|
||||
SetCaretRespondToFocus(TCustomSynEdit(FCurrentEditor).Handle,true);
|
||||
{$ENDIF}
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user