QSurfaceDataProxy: Fix crashes adding the first row of data
Adding one row causes an assert
ASSERT failure in QList::at: "index out of range", file include/QtCore/qlist.h, line 373
since there is no first row to check the column count against.
Check for empty as well.
Pick-to: 5.15 6.1
Task-number: PYSIDE-1438
Change-Id: I225b87b764545b7a430472dc5a4b2e476a26a7ff
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
| commit | 106bef0493758ddaeadd3b4d744227cb7feadb70 |
| parent | f7e965c6c9e1850480e59fc5153a0f3dae688212 |
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> |
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> |
| commit time | Wed, 3 Mar 2021 13:37:55 +0100 |