Qt: Fix qtcaret AV in some circumstances.

git-svn-id: trunk@12238 -
This commit is contained in:
zeljko 2007-09-29 11:14:00 +00:00
parent 0c0bf8b39e
commit 17af4bdc91

View File

@ -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;