diff options
author | Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> | 2015-04-22 16:16:32 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> | 2015-04-23 09:25:58 +0000 |
commit | 32341e8ef85f593358db47b3ea58875708f24cda (patch) | |
tree | ee209b4859dfbcc6c3870277ca39fca129155d63 /qmake/generators/win32/msvc_vcproj.cpp | |
parent | 63d5a42b59149bfdebc9a5a123e7115a813bcaa4 (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 <marc.mutz@kdab.com>
Diffstat (limited to 'qmake/generators/win32/msvc_vcproj.cpp')
0 files changed, 0 insertions, 0 deletions