summaryrefslogtreecommitdiffstats
path: root/examples/opengl
diff options
context:
space:
mode:
authorGabriel de Dietrich <gabriel.dietrich-de@nokia.com>2010-07-26 18:51:32 (GMT)
committerSamuli Piippo <samuli.piippo@digia.com>2011-06-09 10:06:36 (GMT)
commite4a3da5e3af84e3c576718236c490feac3f31703 (patch)
tree6931b4c0b114adbed612ebbfa8da486713225e65 /examples/opengl
parent9914df6e8f032f543c153fa219a5da0911f8b952 (diff)
downloadQt-e4a3da5e3af84e3c576718236c490feac3f31703.zip
Qt-e4a3da5e3af84e3c576718236c490feac3f31703.tar.gz
Qt-e4a3da5e3af84e3c576718236c490feac3f31703.tar.bz2
Fix crash when all the items in a QListView are hidden
Calling QIconModeViewBase::initDynamicLayout() on the second and successive segments would return QPoint(-1,-1), resulting in a totally empty area rectangle for all the items while in QIconModeViewBase::doDynamicLayout(). This rectangle is used to initialize the BSP tree, and produces an arithmetic exception when empty. Furthermore, a rendering bug was also apparent when displaying the first item of a segment while the last item of the previous segment was hidden. Auto-tests included. Reviewed-by: Olivier Task-number: QTBUG-12308 (cherry picked from commit 3c7e7992461b1fef37ada68244f1b5b891015bda)
Diffstat (limited to 'examples/opengl')
0 files changed, 0 insertions, 0 deletions