mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-16 18:09:23 +02:00
Qt: trial to fix all qtcaret crashes.
git-svn-id: trunk@12240 -
This commit is contained in:
parent
b9d2ceec0d
commit
fcf28f8985
@ -342,7 +342,7 @@ end;
|
||||
procedure TEmulatedCaret.SetPos(const Value: TQtPoint);
|
||||
begin
|
||||
|
||||
if (FWidget = nil) then
|
||||
if (FWidget = nil) or (FWidget.Widget = nil) then
|
||||
begin
|
||||
FPos.X := 0;
|
||||
FPos.Y := 0;
|
||||
@ -438,7 +438,7 @@ procedure TEmulatedCaret.UpdateCaret;
|
||||
var
|
||||
R: TRect;
|
||||
begin
|
||||
if (FWidget <> nil) then
|
||||
if (FWidget <> nil) and (FWidget.Widget <> nil) then
|
||||
begin
|
||||
R.Left := FPos.x;
|
||||
R.Top := FPos.y;
|
||||
|
Loading…
Reference in New Issue
Block a user