mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-03 08:41:44 +02:00
Qt: Fix qtcaret AV in some circumstances.
git-svn-id: trunk@12238 -
This commit is contained in:
parent
0c0bf8b39e
commit
17af4bdc91
@ -341,6 +341,14 @@ end;
|
||||
|
||||
procedure TEmulatedCaret.SetPos(const Value: TQtPoint);
|
||||
begin
|
||||
|
||||
if (FWidget = nil) then
|
||||
begin
|
||||
FPos.X := 0;
|
||||
FPos.Y := 0;
|
||||
exit;
|
||||
end;
|
||||
|
||||
if ((FPos.x <> Value.x) or (FPos.y <> Value.y)) then
|
||||
begin
|
||||
FPos := Value;
|
||||
|
Loading…
Reference in New Issue
Block a user