qt intf: fixed showing caret when FWIdget got context, bug #16905

git-svn-id: trunk@30744 -
This commit is contained in:
mattias 2011-05-15 12:11:38 +00:00
parent 82f5d6ef1c
commit acb07766c4

View File

@ -427,7 +427,8 @@ begin
' Y=',Value.Y,' OldX=',FPos.X,' OldY=',FPos.Y,' Dirty=',FCaretDirty);
{$ENDIF}
if not QtWidgetSet.IsValidHandle(HWND(FWidget)) or (FWidget.Widget = nil) then
if not QtWidgetSet.IsValidHandle(HWND(FWidget)) or (FWidget.Widget = nil)
or (FWidget.Context=0) then
begin
// oops, our caret is dirty here.
FCaretDirtyPos := FPos;