QIBusPlatformInputContext: Fix a crash in tst_qinputpanel::update.

Change-Id: If50c442958b6f25f17325f7792bb3f882e4b13e7
Reviewed-by: Pekka Vuorela <pekka.ta.vuorela@nokia.com>
Reviewed-by: Joona Petrell <joona.t.petrell@nokia.com>
bb10
Friedemann Kleint 2011-12-12 15:32:59 +01:00 committed by Qt by Nokia
parent 56c4ddfdf6
commit 3b2d99a5c8
1 changed files with 2 additions and 0 deletions

View File

@ -160,6 +160,8 @@ void QIBusPlatformInputContext::cursorRectChanged()
return;
QWindow *inputWindow = qApp->inputPanel()->inputWindow();
if (!inputWindow)
return;
r.moveTopLeft(inputWindow->mapToGlobal(r.topLeft()));
if (debug)
qDebug() << "microFocus" << r;