Commit b7a2d47e authored by Android Build Merger (Role)'s avatar Android Build Merger (Role)

[automerger] Fix crash during cursor moving on BiDi text am: 95218ce7

Change-Id: Id97c3f508a0dcd82978b06891b3a979921d4be3a
parents 70e4dec5 95218ce7
......@@ -1348,7 +1348,8 @@ public abstract class Layout {
}
float get(final int offset) {
if (mHorizontals == null) {
if (mHorizontals == null || offset < mLineStartOffset
|| offset >= mLineStartOffset + mHorizontals.length) {
return getPrimaryHorizontal(offset);
} else {
return mHorizontals[offset - mLineStartOffset];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment