commit | 1341ab6f3808d8c11b147f82bc7735116c7d709f | [log] [tgz] |
---|---|---|
author | Raph Levien <raph@google.com> | Mon Jul 09 16:57:35 2012 -0700 |
committer | Raph Levien <raph@google.com> | Mon Jul 09 16:57:35 2012 -0700 |
tree | bbba0a87a2ce9158dbdec9c9714b0be4b3dd6e5f | |
parent | 69b9e00b0341dbae517d3e412ef5f1fdbb881e94 [diff] |
Fix for bug 6716343. Use correct offset for mPos reset. The mPos field in the MeasuredText object is relative to the start of the text (mTextStart), but the pos passed in by the caller of the setPos() method is relative to the character sequence. When spans overlap break boundaries and the paragraph doesn't start at 0, the result is an out of bounds error. This fix uses the correct offset. Change-Id: I12c7a2311a9bdbbea7ab21554a922b7f665a17bf