mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-23 01:39:31 +02:00
Gtk3: check if control has caret before destroying caret.
This commit is contained in:
parent
01d0c7d35c
commit
c3c4a8132b
@ -2721,7 +2721,7 @@ procedure TGtk3Widget.DestroyWidget;
|
||||
var
|
||||
ATemp: PGtkWidget;
|
||||
begin
|
||||
if IsValidHandle then
|
||||
if HasCaret and IsValidHandle then
|
||||
GTK3WidgetSet.DestroyCaret(HWND(Self));
|
||||
|
||||
if IsValidHandle and FOwnWidget then
|
||||
|
Loading…
Reference in New Issue
Block a user