path: root/qmake
diff options
authorFriedemann Kleint <>2015-04-22 16:16:32 +0200
committerFriedemann Kleint <>2015-04-23 09:25:58 +0000
commit32341e8ef85f593358db47b3ea58875708f24cda (patch)
treeee209b4859dfbcc6c3870277ca39fca129155d63 /qmake
parent63d5a42b59149bfdebc9a5a123e7115a813bcaa4 (diff)
Fix FPE in QApplicationPrivate::dispatchEnterLeave() due to invalid cursor position.
QGuiApplicationPrivate::lastCursorPosition is initialized to qInf(), qIn(). Under some circumstances, this is passed to dispatchEnterLeave() which causes an FPE in QPointF::toPoint(). Move the invocation of QPointF::toPoint() to the if-branch handling the enter list, which already fixes the FPE. To be extra sure, clamp to QWIDGETSIZE_MAX. Task-number: QTBUG-45501 Change-Id: I2d1407415e6360196730d23ee319d1ee6981d1f5 Reviewed-by: Marc Mutz <>
Diffstat (limited to 'qmake')
0 files changed, 0 insertions, 0 deletions