summaryrefslogtreecommitdiffstats
path: root/tests/auto/widgets/kernel
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2021-10-04 18:30:11 +0200
committerEdward Welbourne <edward.welbourne@qt.io>2021-10-07 14:22:56 +0200
commitc1281c306c1304374cb7ba1c341db71b584bf6c6 (patch)
tree153a3fb1e81e60a7c5b365bb46fae1a98915f712 /tests/auto/widgets/kernel
parentf644a122125feb799a02f4a3fb0f0fa51b8a14ad (diff)
Fix handling of grouping characters when validating doubles
In QDoubleSpinBoxPrivate::validateAndInterpret() some code still assumed checking one entry in a QString is enough (it isn't - the grouping separator may be a surrogate pair) and nothing considered the case of an empty grouping separator (as can arise if the user sets that in their system configuration, as a brute-force way to suppress digit-grouping). Failure to consider this case failed an assertion on dereferencing the first character of the separator. Handle the case of empty separator and suppress tests that try to match a separator, when there is no separator. Pick-to: 6.2 Fixes: QTBUG-96734 Change-Id: I63d3205ef8656a2cd2c0d855a25e712ad66e2429 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'tests/auto/widgets/kernel')
0 files changed, 0 insertions, 0 deletions