diff options
| author | Richard Moe Gustavsen <richard.gustavsen@qt.io> | 2020-04-02 16:19:25 +0200 |
|---|---|---|
| committer | Richard Moe Gustavsen <richard.gustavsen@qt.io> | 2020-04-07 15:04:37 +0200 |
| commit | 0ebc0a321a4f40089318ab4a7bd31b84ffbf8393 (patch) | |
| tree | 59d8a1a1b0011a3d500a7d220292b41990b32d1e /src/qml/jsruntime/qv4engine.cpp | |
| parent | 6387fdd3295d21adf1fb62d5101d286048d0c664 (diff) | |
QQuickTableView: fix crash in tableLayoutToString()
The function QQuickTableViewPrivate::tableLayoutToString() returns
a string used for debugging the loaded table. If the table is
empty, it will crash/assert while trying to read data out of an
empty vector.
This patch will check for this case before creating the string.
Change-Id: I47c01b3c8447ccc7424fe475f38e22ff70c681d8
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4engine.cpp')
0 files changed, 0 insertions, 0 deletions
