mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
FIX: Crash under GTK3
This commit is contained in:
parent
1049fd9722
commit
92bd7df527
1 changed files with 14 additions and 10 deletions
|
|
@ -2068,17 +2068,21 @@ begin
|
|||
if FShowCaret <> AValue then
|
||||
begin
|
||||
FShowCaret:= AValue;
|
||||
if FShowCaret then
|
||||
|
||||
if HandleAllocated then
|
||||
begin
|
||||
LCLIntf.CreateCaret(Handle, 0, 2, FTextHeight);
|
||||
LCLIntf.ShowCaret(Handle);
|
||||
FCaretVisible:= True;
|
||||
Invalidate;
|
||||
end
|
||||
else begin
|
||||
FCaretVisible:= False;
|
||||
LCLIntf.HideCaret(Handle);
|
||||
LCLIntf.DestroyCaret(Handle);
|
||||
if FShowCaret then
|
||||
begin
|
||||
LCLIntf.CreateCaret(Handle, 0, 2, FTextHeight);
|
||||
LCLIntf.ShowCaret(Handle);
|
||||
FCaretVisible:= True;
|
||||
Invalidate;
|
||||
end
|
||||
else begin
|
||||
FCaretVisible:= False;
|
||||
LCLIntf.HideCaret(Handle);
|
||||
LCLIntf.DestroyCaret(Handle);
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue