[automerger] Fix crash during cursor moving on BiDi text am: 95218ce7ea am: b7a2d47ec2
Change-Id: I6995aab201805b64e81022db295356ef8abda30c
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user