mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-03 03:40:21 +02:00
Gtk3: do not try to draw caret at design time widget.
This commit is contained in:
parent
e4db21c499
commit
b119620f45
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user