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

[automerger] Fix crash during cursor moving on BiDi text am: 82c84d5f am: 12baaa2b

Change-Id: Iaf0aded3004f33fdb52dd0c19779329991b24746
parents 7ae6e656 12baaa2b
......@@ -1390,7 +1390,8 @@ public abstract class Layout {
}
float get(final int offset) {
if (mHorizontals == null) {
if (mHorizontals == null || offset < mLineStartOffset
|| offset >= mLineStartOffset + mHorizontals.length) {
return getHorizontal(offset, mPrimary);
} 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