summaryrefslogtreecommitdiffstats
path: root/LICENSE.QT-LICENSE-AGREEMENT
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2022-03-14 21:03:57 +0100
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2022-03-15 12:45:46 +0100
commit182255052966d2163cfe0e16bf267925894abac8 (patch)
treead69e5c019be00e61a090f10b283e54b4a8bf548 /LICENSE.QT-LICENSE-AGREEMENT
parent7d00e726772d96d816c91863c6394f5752c5b7c2 (diff)
QFormLayout: Fix assert when showing with hidden rows
Amends a74cdf778c0c72fa22d9354207d729b2cbf88128, after which the initialization of items in invisible rows is skipped. Since data members in QFormLayoutItem were lazily initialized, this resulted in out-of-bounds access of QList entries. Use member initialization for all QFormLayoutItem fields, and check that vLayoutIndex is valid before using it to access the list entry. Skip labels and fields for which it is not initialized. Add test case. As a drive-by, silence the test's provoked warning messages via ignoreMessage. Change-Id: I374b414a51df20b9af3087a2676061fc6b7f23e2 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'LICENSE.QT-LICENSE-AGREEMENT')
0 files changed, 0 insertions, 0 deletions