summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/ios/qiosdocumentpickercontroller.mm
diff options
context:
space:
mode:
authorMarc Mutz <[email protected]>2025-10-20 20:53:12 +0200
committerMarc Mutz <[email protected]>2025-10-24 19:45:46 +0200
commit9f9da8a30cd78e51d0e50fcc2f62950ba04966e3 (patch)
tree56a719ea25cf60941ec97de12edf32de15403fd3 /src/plugins/platforms/ios/qiosdocumentpickercontroller.mm
parent5d0a64f5c0670e40d5b7034853d2677d7a2a97a5 (diff)
Fix off-by-one in QUnicodeTools::getWhiteSpaces()HEADdev
There are no space characters in Unicode outside the BMP at the moment (QUnicodeTables::MaxSeparatorCodepoint == 0x3000 at this point), but if there were, the old code would flip the QCharAttributes::whiteSpace on the low-surrogate position, not the high one, as all other functions do. Fix by using the same pattern used by the other boundary-finding functions: save the index at the start of the loop, and use the saved value when indexing into attributes[]. Amends 824180a12249e48c0e3280fec64940825ce0aa6e. Pick-to: 6.10 6.8 6.5 Change-Id: I116a5e1da6c9df5e4237073481d71efbf956f27f Reviewed-by: Thiago Macieira <[email protected]>
Diffstat (limited to 'src/plugins/platforms/ios/qiosdocumentpickercontroller.mm')
0 files changed, 0 insertions, 0 deletions