diff options
author | Kati Kankaanpaa <kati.kankaanpaa@theqtcompany.com> | 2015-05-13 10:28:42 -0700 |
---|---|---|
committer | Kati Kankaanpaa <kati.kankaanpaa@theqtcompany.com> | 2015-05-13 20:51:03 +0000 |
commit | 86601fc5758b223bc74687b19e3ec020b1d61d3a (patch) | |
tree | 6e3aae2f61071febbac2417ecf776ef0047f7da7 /examples/opengl/legacy/hellogl/hellogl.pro | |
parent | 6ef5ca2e2f34e821375cc730c293f1a87179ccd0 (diff) |
Fix division by zero crash when restoring screen settings
The restoredScreenNumber was used before it's existence was checked,
which caused 'division by zero' if the screen has been removed after
storing the screen number.
The check if restoredScreenNumber exists was moved to happen before
restoredScreenNumber is used for the first time.
Change-Id: Iada0e8c5cbb6d8ca88df171dbee045be249f50cd
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
Diffstat (limited to 'examples/opengl/legacy/hellogl/hellogl.pro')
0 files changed, 0 insertions, 0 deletions