diff options
author | Andy Shaw <andy.shaw@qt.io> | 2020-01-08 14:48:12 +0100 |
---|---|---|
committer | Andy Shaw <andy.shaw@qt.io> | 2020-01-09 15:28:43 +0100 |
commit | 1c75f59588694557caba69c2fc173dd8f1d7f514 (patch) | |
tree | ca25a230274842a8ea2a25c0a144549dcb8d17c8 /doc | |
parent | 1e42c97cf055ac20352d20150e2786c14565ea2b (diff) |
iOS: Handle positionFromPosition out of bounds
Based on the documentation for positionFromPosition, if the resulting
position is less than 0 or longer than the text, then we should return
nil. This fixes problems with placement of the cursor and selection
rectangle when auto-completion is used.
Fixes: QTBUG-79445
Change-Id: I44a18881527a8a22012fe5fcbbc3216e60c48bc9
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions