mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-28 20:40:56 +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
|
var
|
||||||
ATemp: PGtkWidget;
|
ATemp: PGtkWidget;
|
||||||
begin
|
begin
|
||||||
if IsValidHandle then
|
if HasCaret and IsValidHandle then
|
||||||
GTK3WidgetSet.DestroyCaret(HWND(Self));
|
GTK3WidgetSet.DestroyCaret(HWND(Self));
|
||||||
|
|
||||||
if IsValidHandle and FOwnWidget then
|
if IsValidHandle and FOwnWidget then
|
||||||
|
Loading…
Reference in New Issue
Block a user