diff options
author | Sami Merila <sami.merila@nokia.com> | 2011-06-07 08:08:59 (GMT) |
---|---|---|
committer | Sami Merila <sami.merila@nokia.com> | 2011-06-07 08:08:59 (GMT) |
commit | 34b888b2c6455cdcd4f931f6a5a038636cf951eb (patch) | |
tree | 4187bd809c10b1ba0859ea8a40f95aaad68eaeee | |
parent | 40191387a77552b2ba6df547b87de040e126220a (diff) | |
download | Qt-34b888b2c6455cdcd4f931f6a5a038636cf951eb.zip Qt-34b888b2c6455cdcd4f931f6a5a038636cf951eb.tar.gz Qt-34b888b2c6455cdcd4f931f6a5a038636cf951eb.tar.bz2 |
KERN-EXEC 3 panic in QCoeFepInputContext::translateInputWidget()
There is no check if graphics view pointer is null in the SLOT
function translateInputWidget().
Task-number: QTBUG-19734
Reviewed-by: Miikka Heikkinen
-rw-r--r-- | src/gui/inputmethod/qcoefepinputcontext_s60.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/inputmethod/qcoefepinputcontext_s60.cpp b/src/gui/inputmethod/qcoefepinputcontext_s60.cpp index 67330e2..f057e0a 100644 --- a/src/gui/inputmethod/qcoefepinputcontext_s60.cpp +++ b/src/gui/inputmethod/qcoefepinputcontext_s60.cpp @@ -868,6 +868,8 @@ void QCoeFepInputContext::ensureInputCapabilitiesChanged() void QCoeFepInputContext::translateInputWidget() { QGraphicsView *gv = qobject_cast<QGraphicsView *>(S60->splitViewLastWidget); + if (!gv) + return; QRect splitViewRect = qt_TRect2QRect(static_cast<CEikAppUi*>(S60->appUi())->ClientRect()); QRectF cursor = gv->scene()->inputMethodQuery(Qt::ImMicroFocus).toRectF(); |