Fix negative offset in Select-to-Speak that causes issues when resuming
When resuming from the end of a nodeGroupItem, findNodeFromNodeGroupByCharIndex returns a node with a -1 offset. This will throw exceptions. This CL fixes this bug. Bug: 1167260 Change-Id: I2fe466a07f3daa2103dec53e6ebcedd5be27d285 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2638863 Commit-Queue: Lei Shi <leileilei@google.com> Reviewed-by:Katie Dektar <katie@chromium.org> Cr-Commit-Position: refs/heads/master@{#845406}
Showing
Please register or sign in to comment