Commit 40c927e7 authored by Giuseppe D'Angelo's avatar Giuseppe D'Angelo
Browse files

XCB: prevent a fp division by zero


For certain devices vci->resolution is zero, which causes a SIGFPE
if FE_INVALID exceptions are enabled. Try to prevent that.

Task-number: QTBUG-42717
Change-Id: I388735f5dfb6218496787dbb74cf0c0f43cc928f
Reviewed-by: default avatarAlexander Volkov <a.volkov@rusbitech.ru>
Reviewed-by: default avatarBłażej Szczygieł <spaz16@wp.pl>
Reviewed-by: default avatarShawn Rutledge <shawn.rutledge@theqtcompany.com>
parent 0d54b0f4
Showing with 7 additions and 4 deletions
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment