Gtk3: do not try to draw caret at design time widget.

This commit is contained in:
zeljan1 2025-02-21 10:24:54 +01:00
parent e4db21c499
commit b119620f45

View File

@ -1943,7 +1943,7 @@ begin
end;
DoBeforeLCLPaint;
LCLObject.WindowProc(TLMessage(Msg));
if HasCaret then
if HasCaret and not (csDesigning in LCLObject.ComponentState) then
begin
ACaret := TGtk3Caret(g_object_get_data(Sender,'gtk3-caret'));
if ACaret.Visible then